Permalink
Browse files

introduce subject

  • Loading branch information...
1 parent 76622fa commit 5eed290397dc0374cc4375cdba82a54035a553d8 @niku committed Apr 16, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 spec/apn_on_rails/app/models/apn/group_notification_spec.rb
View
8 spec/apn_on_rails/app/models/apn/group_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::GroupNotification.first
noty.custom_properties = nil
device = DeviceFactory.new(:token => '5gxadhy6 6zmtxfl6 5zpbcxmw ez3w7ksf qscpr55t trknkzap 7yyt45sc g6jrw7qz')
- noty.message_for_sending(device).should == fixture_value('message_for_sending.bin')
+ noty.message_for_sending(device)
+ }
+
+ it do
+ subject.should == fixture_value('message_for_sending.bin')
end
end

0 comments on commit 5eed290

Please sign in to comment.