Permalink
Browse files

fix faulty test

  • Loading branch information...
stevegraham committed Apr 9, 2012
1 parent 8abd44f commit 9891841866d0b690c9f6cb75be241d2c68d01822
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/integration/integration_spec.rb
@@ -101,15 +101,15 @@
context 'with valid authentication credentials:' do
it 'accepts the subscription request' do
messages = em_stream do |websocket, messages|
if messages.empty?
if messages.length < 2
private_channel websocket, messages.first
else
EM.stop
end
end
matcher messages, first_event: 'pusher:connection_established', id_present: true
messages.length.should == 1
matcher messages, connection_established: true, count: 2, id_present: true,
last_event: 'pusher_internal:subscription_succeeded'
end
end

0 comments on commit 9891841

Please sign in to comment.