spec/faye/websocket/client_spec.rb in faye-websocket-0.4.1 vs spec/faye/websocket/client_spec.rb in faye-websocket-0.4.2
- old
+ new
@@ -75,10 +75,11 @@
callback.call
end
end
describe Faye::WebSocket::Client do
+ next if Faye::WebSocket.jruby?
include WebSocketSteps
let(:protocols) { ["foo", "echo"] }
let(:plain_text_url) { "ws://0.0.0.0:8000/" }
let(:secure_url) { "wss://0.0.0.0:8000/" }
@@ -150,19 +151,23 @@
it_should_behave_like "socket client"
end
describe "with a plain-text Rainbows server" do
+ next if Faye::WebSocket.rbx?
+
let(:socket_url) { plain_text_url }
let(:blocked_url) { secure_url }
before { server 8000, :rainbows, false }
after { sync ; stop }
it_should_behave_like "socket client"
end
describe "with a secure Thin server" do
+ next if Faye::WebSocket.rbx?
+
let(:socket_url) { secure_url }
let(:blocked_url) { plain_text_url }
before { server 8000, :thin, true }
after { sync ; stop }