spec/reel/server_spec.rb in reel-0.2.0.pre vs spec/reel/server_spec.rb in reel-0.2.0

- old
+ new

@@ -1,20 +1,20 @@ require 'spec_helper' require 'net/http' describe Reel::Server do - let(:endpoint) { URI("http://#{example_addr}:#{example_port}#{example_url}") } + let(:endpoint) { URI(example_url) } let(:response_body) { "ohai thar" } it "receives HTTP requests and sends responses" do ex = nil handler = proc do |connection| begin request = connection.request request.method.should eq :get request.version.should eq "1.1" - request.url.should eq example_url + request.url.should eq example_path connection.respond :ok, response_body rescue => ex end end