Skip to content

Commit

Permalink
Merge f20147a into 65ad0d8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSmartnik committed Oct 22, 2020
2 parents 65ad0d8 + f20147a commit a049797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/acceptance/realtime/auth_spec.rb
Expand Up @@ -1058,7 +1058,7 @@ def disconnect_transport(connection)

it 'disconnected includes and invalid signature message' do
client.connection.once(:disconnected) do |state_change|
expect(state_change.reason.message.match(/invalid signature/i)).to_not be_nil
expect(state_change.reason.message.match(/signature verification failed/i)).to_not be_nil
expect(state_change.reason.code).to eql(40144)
stop_reactor
end
Expand Down Expand Up @@ -1111,7 +1111,7 @@ def disconnect_transport(connection)

it 'authentication fails and reason for disconnection is invalid signature' do
client.connection.once(:disconnected) do |state_change|
expect(state_change.reason.message.match(/invalid signature/i)).to_not be_nil
expect(state_change.reason.message.match(/signature verification failed/i)).to_not be_nil
expect(state_change.reason.code).to eql(40144)
stop_reactor
end
Expand Down Expand Up @@ -1143,7 +1143,7 @@ def disconnect_transport(connection)

it 'fails with an invalid signature error' do
client.connection.once(:disconnected) do |state_change|
expect(state_change.reason.message.match(/invalid signature/i)).to_not be_nil
expect(state_change.reason.message.match(/signature verification failed/i)).to_not be_nil
expect(state_change.reason.code).to eql(40144)
stop_reactor
end
Expand Down

0 comments on commit a049797

Please sign in to comment.