Sha256: 9f9225b762d921ec7fc19dd40bc97a1050decae2937de3a0963f2c993acc19ee

Contents?: true

Size: 560 Bytes

Versions: 9

Compression:

Stored size: 560 Bytes

Contents

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

module JsTestServer::Server::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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
honkster-js-test-server-0.2.12 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
honkster-js-test-server-0.2.11 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
honkster-js-test-server-0.2.10 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
honkster-js-test-server-0.2.9 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
js-test-server-0.2.8 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
js-test-server-0.2.7 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
js-test-server-0.2.6 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
js-test-server-0.2.1 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb
js-test-server-0.2.0 spec/unit/js_test_core/resources/implementations_deprecation_spec.rb