Sha256: 1180f5186fdecb51ddb3a74b7f55c9ab3fc7d9b5bb829dba85e36af1212a80fe

Contents?: true

Size: 722 Bytes

Versions: 45

Compression:

Stored size: 722 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "test_helper")
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

45 entries across 45 versions & 9 rubygems

Version Path
floehopper-mocha-0.9.3.20081220175348 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.3.20081230175553 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.4.20090128164727 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.5.20090201123802 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.6.20090629164857 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.6.20090629165308 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.6.20090701111305 test/acceptance/acceptance_test_helper.rb
floehopper-mocha-0.9.7.20090701124354 test/acceptance/acceptance_test_helper.rb
gsterndale-warrant-0.2.0 test/rails_root/vendor/gems/mocha-0.9.4/test/acceptance/acceptance_test_helper.rb
gsterndale-warrant-0.3.0 test/rails_root/vendor/gems/mocha-0.9.4/test/acceptance/acceptance_test_helper.rb
hashrocket-clearance-0.4.0 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
hashrocket-clearance-0.4.1 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
hashrocket-clearance-0.4.2 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.5.0.1240002286 test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.5.0.1240351621 test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.5.0.1241126838 test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.7.0.1247796736 test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.7.20090701124354 test/acceptance/acceptance_test_helper.rb
jferris-mocha-0.9.7.20090911190113 test/acceptance/acceptance_test_helper.rb