Sha256: 4cad5cf84a14f13cee3be6537960aed6f54d96a8156bd601434d86614322058c

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require 'fake_web'
FakeWeb.allow_net_connect = false
FakeWeb.register_uri(:any, /.*/, :body => "Faked HTTP response")

When /^it should POST to "http:\/\/localhost:1234([^"]*)"$/ do |path|
  request = FakeWeb.last_request || raise("Fakeweb did not record a request.")
  request.path.should == path
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relish-0.0.2 features/step_definitions/fake_web_steps.rb