test/notification_test.rb in resque-aps-0.9.8 vs test/notification_test.rb in resque-aps-0.9.9
- old
+ new
@@ -1,8 +1,8 @@
require File.dirname(__FILE__) + '/test_helper'
-context "ResqueAps::Notification" do
+context "Resque::Plugins::Aps::Notification" do
test "has a nice #inspect" do
- n = ResqueAps::Notification.new('application_name' => 'SomeApp', 'device_token' => 'aihdf08u2402hbdfquhiwr', 'payload' => '{"aps": { "alert": "hello"}}')
- assert_equal '#<ResqueAps::Notification "SomeApp", "aihdf08u2402hbdfquhiwr", "{\"aps\": { \"alert\": \"hello\"}}">', n.inspect
+ n = Resque::Plugins::Aps::Notification.new('application_name' => 'SomeApp', 'device_token' => 'aihdf08u2402hbdfquhiwr', 'payload' => '{"aps": { "alert": "hello"}}')
+ assert_equal '#<Resque::Plugins::Aps::Notification "SomeApp", "aihdf08u2402hbdfquhiwr", "{\"aps\": { \"alert\": \"hello\"}}">', n.inspect
end
end
\ No newline at end of file