Sha256: 82b7c7ff2bccffa179b6acaf5819d75752df0264ca6aa102b174f20de9eac553

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

require 'cheetah_mail'
require 'net/http'

# blocks http requests and throws an exception
require 'fakeweb'
FakeWeb.allow_net_connect = false

# use this to explicitly block http requests.
# but only use it if you know you should.
# don't blanket your specs with it.
def stub_http
  Net::HTTP.stub(:new).and_return(mock(:http).as_null_object)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cheetah_mail-0.6.0 spec/spec_helper.rb