Skip to content

Commit

Permalink
introduce subject
Browse files Browse the repository at this point in the history
  • Loading branch information
niku committed Apr 20, 2012
1 parent f0c74cd commit 30780db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/apn_on_rails/app/models/apn/notification_spec.rb
Expand Up @@ -43,11 +43,15 @@
describe 'message_for_sending' do describe 'message_for_sending' do


describe 'should create a binary message to be sent to Apple' do describe 'should create a binary message to be sent to Apple' do
it do subject {
noty = APN::Notification.first noty = APN::Notification.first
noty.custom_properties = nil noty.custom_properties = nil
noty.device = DeviceFactory.new(:token => '5gxadhy6 6zmtxfl6 5zpbcxmw ez3w7ksf qscpr55t trknkzap 7yyt45sc g6jrw7qz') noty.device = DeviceFactory.new(:token => '5gxadhy6 6zmtxfl6 5zpbcxmw ez3w7ksf qscpr55t trknkzap 7yyt45sc g6jrw7qz')
noty.message_for_sending.should == fixture_value('message_for_sending.bin') noty.message_for_sending
}

it do
subject.should == fixture_value('message_for_sending.bin')
end end
end end


Expand Down

0 comments on commit 30780db

Please sign in to comment.