Sha256: 56d5363a898f72c9aef053d0fe36948587ee16961ae9f46ef92244a703f42a2d

Contents?: true

Size: 588 Bytes

Versions: 21

Compression:

Stored size: 588 Bytes

Contents

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

module JsTestCore
  module Resources
    describe ImplementationsDeprecation do
      describe "GET /implementations/*" do
        it "responds with a 301 to /javascripts/*" do
          response = get(ImplementationsDeprecation.path("/subdir/bar.js"))
          response.should be_http(
            301,
            {'Location' => File.path("/javascripts/subdir/bar.js")},
            "This page has been moved to #{File.path("/javascripts/subdir/bar.js")}"
          )
        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/implementations_deprecation_spec.rb
pivotal-screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-0.5.2 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.10 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.11 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.12 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.4 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.5 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.6 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.7 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.8 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
pivotal-screw-unit-server-0.5.9 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
honkster-screw-unit-server-0.6.3 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
honkster-screw-unit-server-0.6.2 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
honkster-screw-unit-server-0.6.1 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
btakita-screw-unit-server-0.6.0 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/implementations_deprecation_spec.rb