Sha256: 065387d938a575b5403121823c00093e10cfa5f66372e5215473941e2d57e55d

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-webservice_matchers-0.2.0 spec/rspec/webservice_matchers/redirect_spec.rb
rspec-webservice_matchers-0.1.1 spec/rspec/webservice_matchers/redirect_spec.rb
rspec-webservice_matchers-0.1.0 spec/rspec/webservice_matchers/redirect_spec.rb