Permalink
Browse files

extract local value

  • Loading branch information...
1 parent 5eed290 commit 3856d1fb97612d01c82f6864ccc9c16010fc6f3f @niku committed Apr 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/apn_on_rails/app/models/apn/group_notification_spec.rb
@@ -46,9 +46,10 @@
subject {
noty = APN::GroupNotification.first
noty.custom_properties = nil
- device = DeviceFactory.new(:token => '5gxadhy6 6zmtxfl6 5zpbcxmw ez3w7ksf qscpr55t trknkzap 7yyt45sc g6jrw7qz')
+ device = DeviceFactory.new(:token => token)
noty.message_for_sending(device)
}
+ let(:token) { '5gxadhy6 6zmtxfl6 5zpbcxmw ez3w7ksf qscpr55t trknkzap 7yyt45sc g6jrw7qz' }
it do
subject.should == fixture_value('message_for_sending.bin')

0 comments on commit 3856d1f

Please sign in to comment.