Sha256: 3d17fa1e3110d5c24e11788c5eb4aba0db127536c8aa2a20c7114be787c615c2
Contents?: true
Size: 511 Bytes
Versions: 3
Compression:
Stored size: 511 Bytes
Contents
require 'rspec/webservice_matchers' # # TODO: Set up a server for these. (Or a mock?) # describe 'redirect_permanently_to' do it 'passes when receiving a 301 to the given URL' do expect('http://weblaws.org').to redirect_permanently_to('http://www.weblaws.org/') end end describe 'redirect_temporarily_to' do it 'passes when it gets a 302' do 'http://www.oregonlaws.org/cms/about_us'.should redirect_temporarily_to 'http://www.weblaws.org/cms/about_us' end it 'passes when it gets a 307' end
Version data entries
3 entries across 3 versions & 1 rubygems