Sha256: aa8e01e3e9b4920b70e6d8f16742ae10d15921cceb71f7f798ccbe97af0d7b7b

Contents?: true

Size: 370 Bytes

Versions: 9

Compression:

Stored size: 370 Bytes

Contents

require "spec_helper"

describe Simple::Httpd do
  describe "helpers" do
    it "loads helpers from the same directory tree" do
      http.get "/helpers/ex2"
      expect_response "ex2_helper"
    end

    it "does not load helpers from other directory tree even on the same URL tree" do
      http.get "/helpers/ex1"
      expect_response status: 404
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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