Permalink
Browse files

introduce subject

  • Loading branch information...
1 parent f0c74cd commit 30780dbd52482ae2bd0aef7eb6a099f58f846045 @niku committed Apr 16, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 spec/apn_on_rails/app/models/apn/notification_spec.rb
View
8 spec/apn_on_rails/app/models/apn/notification_spec.rb
@@ -43,11 +43,15 @@
describe 'message_for_sending' do
describe 'should create a binary message to be sent to Apple' do
- it do
+ subject {
noty = APN::Notification.first
noty.custom_properties = nil
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

0 comments on commit 30780db

Please sign in to comment.