Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Read 38 bytes from the SSL socket.

  • Loading branch information...
commit c69bf3bde138a4a098523d950193dd0902d2670e 1 parent f57a864
Tatsuya Suzuki authored chrisrhoden committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 spec/apn_on_rails/libs/feedback_spec.rb
View
8 spec/apn_on_rails/libs/feedback_spec.rb
@@ -9,14 +9,12 @@
@device = DeviceFactory.create
@cert = mock('cert_mock')
- @data_mock = mock('data_mock')
- @data_mock.should_receive(:strip!)
+ @data_mock = mock('data_mock')
@data_mock.should_receive(:unpack).with('N1n1H140').and_return([@time.to_i, 12388, @device.token.delete(' ')])
- @ssl_mock = mock('ssl_mock')
+ @ssl_mock = mock('ssl_mock')
+ @ssl_mock.should_receive(:read).with(38).twice.and_return(@data_mock, nil)
@sock_mock = mock('sock_mock')
- @sock_mock.should_receive(:gets).twice.and_return(@data_mock, nil)
-
end
it 'should an Array of devices that need to be processed' do
Please sign in to comment.
Something went wrong with that request. Please try again.