Sha256: ae62a6435a86a50da2f69b43878f22a0be9f6c2343998b651f3e754c3f4560bd
Contents?: true
Size: 495 Bytes
Versions: 9
Compression:
Stored size: 495 Bytes
Contents
require "helper" describe 'Requests' do context 'w/ trailing slash' do it 'sets X-Wiselinks header field correctly' do get('trailing-slash/', {}, {"X-Wiselinks" => 'template'}) response.headers['X-Wiselinks-Url'].should =~ /trailing-slash\z/ end end context 'w/out slash' do it 'sets X-Wiselinks header field correctly' do get('no-slash', {}, {"X-Wiselinks" => 'template'}) response.headers['X-Wiselinks-Url'].last.should_not == '/' end end end
Version data entries
9 entries across 9 versions & 2 rubygems