Sha256: 9d9866c12b56be254d42ccb0d48023afb9619d28f332fb316eca7d15f48128bd
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
require 'rubygems' require 'httpclient' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'spec' require 'spec/autorun' require 'webmock/rspec' include WebMock def fail() raise_error(Spec::Expectations::ExpectationNotMetError) end def fail_with(message) raise_error(Spec::Expectations::ExpectationNotMetError, message) end class Proc def should_pass lambda { self.call }.should_not raise_error end end def setup_expectations_for_real_example_com_request(options = {}) defaults = { :host => "www.example.com", :port => 80, :method => "GET", :path => "/", :response_code => 200, :response_message => "OK", :response_body => "<title>Google fake response</title>" } setup_expectations_for_real_request(defaults.merge(options)) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webmock-0.8.2 | spec/spec_helper.rb |
webmock-0.8.1 | spec/spec_helper.rb |
webmock-0.8.0 | spec/spec_helper.rb |