Permalink
Browse files

fix spec checking condition

  • Loading branch information...
1 parent 2d0369c commit 49fe5bd35f91504b09f9342469ae5c01cec56068 @niku committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/apn_on_rails/app/models/apn/notification_spec.rb
@@ -51,7 +51,7 @@
it 'should raise an APN::Errors::ExceededMessageSizeError if the message is too big' do
noty = NotificationFactory.new(:device_id => DeviceFactory.create, :sound => true, :badge => nil)
- noty.send(:write_attribute, 'alert', 'a' * 183)
+ noty.stub(:to_apple_json).and_return('_' * 257)
lambda {
noty.message_for_sending
}.should raise_error(APN::Errors::ExceededMessageSizeError)

0 comments on commit 49fe5bd

Please sign in to comment.