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