Permalink
Browse files

fix spec checking condition

  • Loading branch information...
1 parent 4bada94 commit 5b4ed4f9df432f95011986427e1d35ed740a491d @niku committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/apn_on_rails/app/models/apn/group_notification_spec.rb
@@ -55,7 +55,7 @@
group = GroupFactory.create({:app_id => app.id})
device_grouping = DeviceGroupingFactory.create({:group_id => group.id,:device_id => device.id})
noty = GroupNotificationFactory.new(:group_id => group.id, :sound => true, :badge => nil)
- noty.send(:write_attribute, 'alert', 'a' * 183)
+ noty.stub(:to_apple_json).and_return('_' * 257)
lambda {
noty.message_for_sending(device)
}.should raise_error(APN::Errors::ExceededMessageSizeError)

0 comments on commit 5b4ed4f

Please sign in to comment.