Sha256: 08838474235efc53de508ea4a2c6c47b57e1180af07407e24a4434ca50b3fd8f

Contents?: true

Size: 757 Bytes

Versions: 12

Compression:

Stored size: 757 Bytes

Contents

ENV['RAILS_ENV'] = "test"

rails_vendor_path = File.expand_path('../../../vendor/rails')
if File.exist?(rails_vendor_path)
  $:.concat([
    File.join(rails_vendor_path, 'activesupport', 'lib'),
    File.join(rails_vendor_path, 'actionpack', 'lib')
  ])
  require 'active_support'
  require 'action_controller'
  require 'action_controller/test_process'
else
  puts "\n[!] Tests only run when the plugin is installed in the plugins directory, running the tests against anything other than your particular Rails version doesn't really serve a purpose."
  exit -1
end

require 'test/unit'

begin
  TestCase = ActionController::TestCase
rescue NameError
  TestCase = Test::Unit::TestCase
end

$:.unshift File.expand_path('../../lib', __FILE__)
require 'init'

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
seamusabshere-redirect_routing-0.0.3 test/test_helper.rb
wontomedia-1.0.7 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-1.0.6 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-1.0.5 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-1.0.4 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-1.0.2 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-1.0.1 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-1.0.0 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-0.2.1 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-0.2.0 vendor/plugins/redirect_routing/test/test_helper.rb
wontomedia-0.1.1 vendor/plugins/redirect_routing/test/test_helper.rb
redirect_routing-0.0.4 test/test_helper.rb