Sha256: 42bc4a7db06b5bf24f5c0f47b101e7ad7d5aba89f29e429b48f171ee54a0fc79
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
require 'test/unit' require 'webmock' class Test::Unit::TestCase alias setup_without_webmock setup def setup WebMock.reset_webmock @original_allow_net_connect = WebMock.net_connect_allowed? WebMock.disable_net_connect! end alias teardown_without_webmock teardown def teardown @original_allow_net_connect ? WebMock.allow_net_connect! : WebMock.disable_net_connect! end end module WebMock private def assertion_failure(message) raise Test::Unit::AssertionFailedError.new(message) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webmock-0.8.0 | lib/webmock/adapters/test_unit.rb |
webmock-0.7.3 | lib/webmock/adapters/test_unit.rb |
webmock-0.7.2 | lib/webmock/adapters/test_unit.rb |