Sha256: 2bd26a7f78b9c6151600e2cbc0e2e9d392cdba1729965f5481bcf6ff7eb98b70
Contents?: true
Size: 744 Bytes
Versions: 24
Compression:
Stored size: 744 Bytes
Contents
require 'spec_helper' describe 'Locomotive::Middlewares::SeoTrailingSlash' do it 'does not process the "/" url' do get '/' response.status.should_not be(301) end it 'does not process the "/locomotive/" url' do get '/locomotive/' response.status.should_not be(301) end it 'does not process the "/locomotive/*" urls' do get '/locomotive/login' response.status.should_not be(301) end it 'redirects to the url without the trailing slash' do get '/hello_world/' response.status.should be(301) end it 'removes the trailing slash but preserves the query' do get '/hello_world/?test=name' response.status.should be(301) response.location.should == '/hello_world?test=name' end end
Version data entries
24 entries across 24 versions & 1 rubygems