Sha256: 93509fa3569b929495963e5b45bcb26dcd0662d3bc473eddbce0ffea89e531d0

Contents?: true

Size: 273 Bytes

Versions: 5

Compression:

Stored size: 273 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 "/root.rb"
    expect_response 404
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple-httpd-0.3.5 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.3.4 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.3.3 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.3.1 spec/simple/httpd/static_mounting_spec.rb
simple-httpd-0.3.0 spec/simple/httpd/static_mounting_spec.rb