Sha256: 312cb20e7eca7a1dbb5d4ffdd4d4b07b70b504f04eb0ab360d042772ff7b3cb2

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

require 'rspec/webservice_matchers'

describe 'redirect_permanently_to' do
  it 'passes when receiving a 301 to the given URL' do
    # TODO: Set up a server for this. (Or a mock?)
    expect('http://weblaws.org').to redirect_permanently_to('http://www.weblaws.org/')
  end
end

# See https://www.eff.org/https-everywhere
describe 'enforce_https_everywhere' do
  it 'passes when http requests are redirected to https urls' do
    expect('eff.org').to enforce_https_everywhere
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-webservice_matchers-0.0.5 spec/rspec/webservice_matchers/redirect_spec.rb
rspec-webservice_matchers-0.0.4 spec/rspec/webservice_matchers/redirect_spec.rb