Skip to content

Commit

Permalink
Remove unnecessary restoration of Mockery.logger in acceptance tests
Browse files Browse the repository at this point in the history
Now that the Mockery instance is being explicitly instantiated and
destroyed, I think this restoration of the original logger is redundant.
  • Loading branch information
floehopper committed Apr 6, 2018
1 parent 03b2053 commit 8ea0c63
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/acceptance/acceptance_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ def setup_acceptance_test
Mocha::Configuration.reset_configuration
@logger = FakeLogger.new
mockery = Mocha::Mockery.instance
@original_logger = mockery.logger
mockery.logger = @logger
end

def teardown_acceptance_test
Mocha::Configuration.reset_configuration
Mocha::Mockery.instance.logger = @original_logger
end

include Introspection::Assertions
Expand Down

0 comments on commit 8ea0c63

Please sign in to comment.