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

Version Path
bourne-1.1.1 test/acceptance/acceptance_test_helper.rb
bourne-1.1.0 test/acceptance/acceptance_test_helper.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/mocha-0.9.12/test/acceptance/acceptance_test_helper.rb
mocha-0.9.12 test/acceptance/acceptance_test_helper.rb
mocha-0.9.11 test/acceptance/acceptance_test_helper.rb
mocha-0.9.10 test/acceptance/acceptance_test_helper.rb
opsb-bourne-1.0 test/acceptance/acceptance_test_helper.rb
mocha-macruby-0.9.9.20101102121900 test/acceptance/acceptance_test_helper.rb
mocha-0.9.9 test/acceptance/acceptance_test_helper.rb
bourne-1.0 test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.8.20100526112143 test/acceptance/acceptance_test_helper.rb