Sha256: 89bd30e29e75639c173d0b59260fed3d636155ac159f56f95ba37433c6c22f6b

Contents?: true

Size: 275 Bytes

Versions: 4

Compression:

Stored size: 275 Bytes

Contents

require "spec_helper"

describe "static mounting" do
  it "returns a static file" do
    http.get "/README.txt"
    expect_response "This is a README file\n"
  end

  it "does not return a forbidden static file" do
    http.get "/routes.rb"
    expect_response 404
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-httpd-0.4.3 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.4.2 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.4.1 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.4.0 spec/simple/httpd/static_mounting_spec.rb