Permalink
Browse files

maching JSON object instead of String

  • Loading branch information...
1 parent 0d5a1c2 commit 7c72d3a385be3c121d93b9c31886d7026feb2da0 @niku committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/apn_on_rails/app/models/apn/group_notification_spec.rb
View
2 spec/apn_on_rails/app/models/apn/group_notification_spec.rb
@@ -35,7 +35,7 @@
it 'should return the necessary JSON for Apple' do
noty = APN::GroupNotification.first
- noty.to_apple_json.should == %{{"typ":"1","aps":{"badge":5,"sound":"my_sound.aiff","alert":"Hello!"}}}
+ noty.to_apple_json.should be_same_meaning_as %{{"typ":"1","aps":{"badge":5,"sound":"my_sound.aiff","alert":"Hello!"}}}
end
end

0 comments on commit 7c72d3a

Please sign in to comment.