Sha256: 474a22066f454b38c286fa4e4486b5c335e73c11aca517b5a10a41fed7bb8826
Contents?: true
Size: 778 Bytes
Versions: 34
Compression:
Stored size: 778 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) 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
Version data entries
34 entries across 29 versions & 3 rubygems