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
thewoolleyman-mocha-0.9.3.20081219131457 test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.2 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.3 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.4 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.5 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.6 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.7 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.8 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.2.9 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.3.0 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.3.1 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.3.2 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.3.3 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
thoughtbot-clearance-0.3.4 test/rails_root/vendor/gems/mocha-0.9.1/test/acceptance/acceptance_test_helper.rb
mocha-macruby-0.9.8.20100129120100 test/acceptance/acceptance_test_helper.rb
mcmire-mocha-0.9.8 test/acceptance/acceptance_test_helper.rb
mocha-0.9.8 test/acceptance/acceptance_test_helper.rb
mocha-0.9.6 test/acceptance/acceptance_test_helper.rb
mocha-0.9.7 test/acceptance/acceptance_test_helper.rb
mocha-0.9.3 test/acceptance/acceptance_test_helper.rb