Sha256: ec4d8d06b5708a47383283b87baf36e9dfb9935e0537322f3b61b8494a810885

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 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'].last.should == '/'
    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

3 entries across 3 versions & 1 rubygems

Version Path
wiselinks-0.7.2 spec/requests/trailing_slash_spec.rb
wiselinks-0.7.1 spec/requests/trailing_slash_spec.rb
wiselinks-0.7.0 spec/requests/trailing_slash_spec.rb