test/acceptance/acceptance_test_helper.rb in mocha-0.10.5 vs test/acceptance/acceptance_test_helper.rb in mocha-0.11.0

- old
+ new

@@ -2,40 +2,40 @@ require 'test_runner' require 'mocha/configuration' require 'introspection' module AcceptanceTest - + class FakeLogger - + attr_reader :warnings - + def initialize @warnings = [] end - + def warn(message) @warnings << message end - + end - + attr_reader :logger include TestRunner - + 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 - + end