Sha256: 74ed623cf2cbdf04ad1596bc83321602b6de499dba84e21fffe677ca551aef4f

Contents?: true

Size: 817 Bytes

Versions: 5

Compression:

Stored size: 817 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)
require 'test_runner'
require 'mocha/configuration'
require 'introspection'

if Mocha::Detection::MiniTest.testcase && (ENV['MOCHA_RUN_INTEGRATION_TESTS'] != 'test-unit')
  require 'mocha/minitest'
else
  require 'mocha/test_unit'
end

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
    mockery.logger = @logger
  end

  def teardown_acceptance_test
    Mocha::Configuration.reset_configuration
  end

  include Introspection::Assertions
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mocha-1.10.2 test/acceptance/acceptance_test_helper.rb
mocha-1.10.1 test/acceptance/acceptance_test_helper.rb
mocha-1.10.0 test/acceptance/acceptance_test_helper.rb
mocha-1.10.0.beta.1 test/acceptance/acceptance_test_helper.rb
mocha-1.10.0.alpha test/acceptance/acceptance_test_helper.rb