Sha256: 285ad5f036b7a5ad3740b2c6593c732237910379175d1fcbe03b5e1050ae8565

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

require "spec_helper"

describe Simple::Httpd do
  describe "full_url" do
    it "builds a full_url" do
      http.get "/spec/full_url"
      expect_response("http://127.0.0.1:12345/foo?search=s&page=1")
    end
  end

  describe "url" do
    it "returns X-Processing headers on dynamic responses" do
      http.get "/spec/url"
      expect_response("foo?search=s&page=1")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple-httpd-0.4.3 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.4.2 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.4.1 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.4.0 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.3.5 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.3.4 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.3.3 spec/simple/httpd/base_controller/httpd_url_building_spec.rb
simple-httpd-0.3.1 spec/simple/httpd/base_controller/httpd_url_building_spec.rb