spec/pushpad/notification_spec.rb in pushpad-0.6.0 vs spec/pushpad/notification_spec.rb in pushpad-0.7.0
- old
+ new
@@ -269,12 +269,23 @@
{
body: "Example message",
title: "Website Name",
target_url: "http://example.com",
icon_url: "http://example.com/assets/icon.png",
+ image_url: "http://example.com/assets/image.png",
ttl: 604800,
- require_interaction: true
+ require_interaction: true,
+ custom_data: "123",
+ actions: [
+ {
+ title: "My Button 1",
+ target_url: "http://example.com/button-link",
+ icon: "http://example.com/assets/button-icon.png",
+ action: "myActionName"
+ }
+ ],
+ starred: true
}
end
let(:notification) { Pushpad::Notification.new notification_params }
include_examples "notification params"
end
@@ -330,11 +341,22 @@
{
body: "Example message",
title: "Website Name",
target_url: "http://example.com",
icon_url: "http://example.com/assets/icon.png",
+ image_url: "http://example.com/assets/image.png",
ttl: 604800,
- require_interaction: true
+ require_interaction: true,
+ custom_data: "123",
+ actions: [
+ {
+ title: "My Button 1",
+ target_url: "http://example.com/button-link",
+ icon: "http://example.com/assets/button-icon.png",
+ action: "myActionName"
+ }
+ ],
+ starred: true
}
end
let(:notification) { Pushpad::Notification.new notification_params }
include_examples "notification params"
end