spec/websocket_spec.rb in em-websocket-0.0.1 vs spec/websocket_spec.rb in em-websocket-0.0.2
- old
+ new
@@ -31,22 +31,20 @@
end
end
end
it "should fail on non WebSocket requests" do
- pending
-
EM.run do
EventMachine.add_timer(0.1) do
http = EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get :timeout => 0
http.errback { failed }
http.callback {
http.response_header.status.should == 400
EventMachine.stop
}
end
- EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8080, :debug => true) {}
+ EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8080) {}
end
end
end
\ No newline at end of file