spec/integration/event_stream_spec.rb in goliath-1.0.5 vs spec/integration/event_stream_spec.rb in goliath-1.0.6

- old
+ new

@@ -28,22 +28,22 @@ it 'should accept stream' do with_api(EventStreamEndpoint, {:verbose => true, :log_stdout => true}) do |server| sse_client_connect('/stream') do |client| client.listen_to('custom_event') EventStreamEndpoint.events.push(name: 'custom_event', data: 'content') - client.receive_on('custom_event').should == ['content'] - client.receive.should == [] + expect(client.receive_on('custom_event')).to eq(['content']) + expect(client.receive).to eq([]) end end end end context 'unnamed events' do it 'should accept stream' do with_api(EventStreamEndpoint, {:verbose => true, :log_stdout => true}) do |server| sse_client_connect('/stream') do |client| EventStreamEndpoint.events.push(data: 'content') - client.receive.should == ['content'] + expect(client.receive).to eq(['content']) end end end end end \ No newline at end of file