Sha256: f7b9c88746da173d87bf396fe72f2f696d7e6026724597e7486c303dbae9bdb9

Contents?: true

Size: 1.26 KB

Versions: 21

Compression:

Stored size: 1.26 KB

Contents

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

module JsTestCore
  module Resources
    describe WebRoot do
      describe "GET / - ResourceNotFound" do
        it "returns a 404 error" do
          response = get("/i_dont_exist")
          response.should be_http(
            404,
            {},
            Regexp.new("File /i_dont_exist not found")
          )
        end
      end

      describe "PUT / - ResourceNotFound" do
        it "returns a 404 error" do
          response = put("/i_dont_exist")
          response.should be_http(
            404,
            {},
            Regexp.new("File /i_dont_exist not found")
          )
        end
      end

      describe "POST / - ResourceNotFound" do
        it "returns a 404 error" do
          response = post("/i_dont_exist")
          response.should be_http(
            404,
            {},
            Regexp.new("File /i_dont_exist not found")
          )
        end
      end

      describe "DELETE / - ResourceNotFound" do
        it "returns a 404 error" do
          response = delete("/i_dont_exist")
          response.should be_http(
            404,
            {},
            Regexp.new("File /i_dont_exist not found")
          )
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
pivotal-screw-unit-0.5.0 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-0.5.2 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.10 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.11 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.12 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.4 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.5 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.6 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.7 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.8 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
pivotal-screw-unit-server-0.5.9 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
honkster-screw-unit-server-0.6.3 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
honkster-screw-unit-server-0.6.2 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
honkster-screw-unit-server-0.6.1 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
btakita-screw-unit-server-0.6.0 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb
screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/not_found_spec.rb