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

Version Path
challah-1.0.0.beta vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.9.1.beta.3 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
devise_sociable-0.1.0 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.9.1.beta vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.9.0 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.6.2 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.3/test/acceptance/acceptance_test_helper.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.3/test/acceptance/acceptance_test_helper.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.3/test/acceptance/acceptance_test_helper.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.3/test/acceptance/acceptance_test_helper.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.3/test/acceptance/acceptance_test_helper.rb
challah-0.5.1 vendor/bundle/gems/mocha-0.10.5/test/acceptance/acceptance_test_helper.rb
mocha-0.10.5 test/acceptance/acceptance_test_helper.rb
challah-0.5.0 vendor/bundle/gems/mocha-0.10.3/test/acceptance/acceptance_test_helper.rb
mocha-0.10.4 test/acceptance/acceptance_test_helper.rb