test/angelo/websocket_spec.rb in angelo-0.1.22 vs test/angelo/websocket_spec.rb in angelo-0.1.23

- old
+ new

@@ -192,11 +192,11 @@ define_app do Angelo::HTTPABLE.each do |m| __send__ m, '/concur' do websockets.each do |ws| - msg = "from #{params ? params[:foo] : 'http'} #{m.to_s}" + msg = "from #{params[:foo]} #{m.to_s}" ws.write msg end '' end end @@ -214,10 +214,10 @@ expectation = ->(e){ assert_match /from http (#{Angelo::HTTPABLE.map(&:to_s).join('|')})/, e.data } websocket_wait_for '/concur', latch, expectation do - Angelo::HTTPABLE.each {|m| __send__ m, '/concur', foo: 'http'} + Angelo::HTTPABLE.each {|m| __send__ m, '/concur?foo=http'} latch.wait end end