spec/proxy_spec.rb in em-proxy-0.1.6 vs spec/proxy_spec.rb in em-proxy-0.1.7
- old
+ new
@@ -131,11 +131,11 @@
it "should not invoke on_data when :relay_client is passed as server option" do
lambda {
EM.run do
EventMachine.add_timer(0.1) do
- http =EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get({:timeout => 1})
+ http = EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get({:timeout => 1})
http.callback { EventMachine.stop }
end
Proxy.start(:host => "0.0.0.0", :port => 8080) do |conn|
conn.server :goog, :host => "google.com", :port => 80, :relay_client => true
@@ -149,11 +149,11 @@
it "should not invoke on_response when :relay_server is passed as server option" do
lambda {
EM.run do
EventMachine.add_timer(0.1) do
- http =EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get({:timeout => 1})
+ http = EventMachine::HttpRequest.new('http://127.0.0.1:8080/').get({:timeout => 1})
http.callback { EventMachine.stop }
end
Proxy.start(:host => "0.0.0.0", :port => 8080) do |conn|
conn.server :goog, :host => "google.com", :port => 80, :relay_server => true
@@ -162,6 +162,6 @@
end
end
}.should_not raise_error
end
-end
\ No newline at end of file
+end