Permalink
Browse files

extract local value

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

0 comments on commit ccf77c3

Please sign in to comment.