Skip to content

Commit

Permalink
Fixed failure due to minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebs committed Nov 6, 2020
1 parent d2b3658 commit ec556cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/shared_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ def setup
@stub_https = stub_http_request(:any, "https://www.example.com")
end

def teardown
# Ensure global Test::Unit teardown was called
assert_empty WebMock::RequestRegistry.instance.requested_signatures.hash
assert_empty WebMock::StubRegistry.instance.request_stubs
end

def test_assert_requested_with_stub_and_block_raises_error
assert_raises ArgumentError do
assert_requested(@stub_http) {}
Expand Down
6 changes: 6 additions & 0 deletions test/test_webmock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@

class TestWebMock < Test::Unit::TestCase
include SharedTest

def teardown
# Ensure global Test::Unit teardown was called
assert_empty WebMock::RequestRegistry.instance.requested_signatures.hash
assert_empty WebMock::StubRegistry.instance.request_stubs
end
end

0 comments on commit ec556cb

Please sign in to comment.