Sha256: 96558a7ae80c4e2b73a27bc5c7ca1481160f8ff9d6e85fcfc0cecba2d0f0c079
Contents?: true
Size: 715 Bytes
Versions: 11
Compression:
Stored size: 715 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) require 'test_runner' require 'mocha/configuration' 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 end
Version data entries
11 entries across 11 versions & 6 rubygems