Sha256: b88df6b70b26dbd1b6949e11893a21ea4b7b2c01cb2f4a895e9a02e4ad9b3c4a

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../../unit_spec_helper")

module JsTestCore
  module Resources
    describe FileNotFound do
      describe "GET /invalid_path" do
        it "returns a page with a of files in the directory" do
          mock(connection).send_head(404)
          mock(connection).send_body("")

          connection.receive_data("GET /invalid_path HTTP/1.1\r\nHost: _\r\n\r\n")
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
js_spec-0.3.2 vendor/js-test-core/spec/unit/js_test_core/resources/file_not_found_spec.rb
js_spec-0.3.3 vendor/js-test-core/spec/unit/js_test_core/resources/file_not_found_spec.rb
js_test_core-0.2.0 spec/unit/js_test_core/resources/file_not_found_spec.rb
screw-unit-0.3.1 vendor/js-test-core/spec/unit/js_test_core/resources/file_not_found_spec.rb
screw-unit-0.3.3 vendor/js-test-core/spec/unit/js_test_core/resources/file_not_found_spec.rb