Sha256: 5495556d6aa092af88f8ba3f9ccf73d4f3a823481db7e76739e3955d00cd663e

Contents?: true

Size: 1016 Bytes

Versions: 11

Compression:

Stored size: 1016 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift(File.dirname(__FILE__) + '/../../activesupport/lib/active_support')
$:.unshift(File.dirname(__FILE__) + '/fixtures/helpers')

require 'yaml'
require 'stringio'
require 'test/unit'
require 'action_controller'
require 'action_controller/cgi_ext'
require 'action_controller/test_process'
require 'action_view/test_case'

begin
  require 'ruby-debug'
rescue LoadError
  # Debugging disabled. `gem install ruby-debug` to enable.
end

# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true

ActionController::Base.logger = nil
ActionController::Routing::Routes.reload rescue nil


# Wrap tests that use Mocha and skip if unavailable.
def uses_mocha(test_name)
  unless Object.const_defined?(:Mocha)
    require 'mocha'
    require 'stubba'
  end
  yield
rescue LoadError => load_error
  raise unless load_error.message =~ /mocha/i
  $stderr.puts "Skipping #{test_name} tests. `gem install mocha` and try again."
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
radiant-0.7.2 vendor/rails/actionpack/test/abstract_unit.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/actionpack/test/abstract_unit.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/actionpack/test/abstract_unit.rb
actionpack-2.1.0 test/abstract_unit.rb
actionpack-2.1.1 test/abstract_unit.rb
actionpack-2.1.2 test/abstract_unit.rb
antfarm-0.3.0 rails/vendor/rails/actionpack/test/abstract_unit.rb
antfarm-0.4.0 rails/vendor/rails/actionpack/test/abstract_unit.rb
eactionpack-2.1.2 test/abstract_unit.rb
radiant-0.7.0 vendor/rails/actionpack/test/abstract_unit.rb
radiant-0.7.1 vendor/rails/actionpack/test/abstract_unit.rb