Sha256: 6fe7d2b13f58d7636d4466d68cbd88bac2d9a4cd3890a6cb8dcd9a14db27b6f9

Contents?: true

Size: 424 Bytes

Versions: 9

Compression:

Stored size: 424 Bytes

Contents

require "spec_helper"

describe Simple::Httpd do
  describe "X-Processing headers" do
    it "returns X-Processing headers on dynamic responses" do
      http.get "/"
      expect(http.response.headers.keys).to include("x-processing")
    end

    it "returns X-Processing headers on static responses" do
      http.get "/README.txt"
      expect(http.response.headers.keys).not_to include("x-processing")
    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_x_processing_copy.rb
simple-httpd-0.4.2 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.4.1 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.4.0 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.3.5 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.3.4 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.3.3 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.3.1 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb
simple-httpd-0.3.0 spec/simple/httpd/base_controller/httpd_x_processing_copy.rb