Sha256: 638af5bca634aa38eb554cd146182f3fa95e163419477d7d2a2b2e2169922546

Contents?: true

Size: 299 Bytes

Versions: 9

Compression:

Stored size: 299 Bytes

Contents

require "spec_helper"

describe Simple::Httpd do
  describe "debug feature" do
    it "returns CORS headers on dynamic responses" do
      http.get "/debug?foo"
      expect_response '{"foo"=>nil}' + "\n"
      expect(http.response.headers["content-type"]).to match(/text\/plain/)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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