Skip to content

Commit

Permalink
using matcher helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns authored and stevegraham committed Apr 9, 2012
1 parent a7f2999 commit 4b1b0f4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/integration/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,9 @@ def private_channel websocket, message
end
end

# Slanger should send an object denoting connection was succesfully established
messages.first['event'].should == 'pusher:connection_established'
# Channel id should be in the payload
messages.first['data']['socket_id'].should_not be_nil
messages.last['event'].should == 'pusher:error'
matcher connection_established: true, count: 2, id_present: true, last_event:
'pusher:error'
messages.last['data']['message'].=~(/^Invalid signature: Expected HMAC SHA256 hex digest of/).should be_true
messages.length.should == 2
end
end

Expand Down

0 comments on commit 4b1b0f4

Please sign in to comment.