spec/handshake/client_11_spec.rb in websocket-1.2.4 vs spec/handshake/client_11_spec.rb in websocket-1.2.5
- old
+ new
@@ -7,14 +7,14 @@
let(:client_request) { client_handshake_11({ key: handshake.handler.send(:key), version: version }.merge(@request_params || {})) }
let(:server_response) { server_handshake_11({ accept: handshake.handler.send(:accept) }.merge(@request_params || {})) }
it_should_behave_like 'all client drafts'
- it 'should disallow client with invalid challenge' do
+ it 'disallows client with invalid challenge' do
@request_params = { accept: 'invalid' }
handshake << server_response
expect(handshake).to be_finished
expect(handshake).not_to be_valid
- expect(handshake.error).to eql(:invalid_handshake_authentication)
+ expect(handshake.error).to be(:invalid_handshake_authentication)
end
end