Sha256: 75a1459fc41124a5cc9fd72ec390c8e6a305772805015f485682c8a3e17f6f0b

Contents?: true

Size: 509 Bytes

Versions: 56

Compression:

Stored size: 509 Bytes

Contents

$:.unshift File.dirname(__FILE__) + "/../lib"
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"

require 'test/unit'
require 'active_support'
require 'initializer'

# We need to set RAILS_ROOT if it isn't already set
RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
class Test::Unit::TestCase
  def plugin_fixture_root_path
    File.join(File.dirname(__FILE__), 'fixtures', 'plugins')
  end
  
  def only_load_the_following_plugins!(plugins)
    @initializer.configuration.plugins = plugins
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
backlog-0.0.0 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.0.1 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.0.2 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.0.4 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.0.5 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.1.0 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.1.1 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.1.2 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.2.0 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.2.1 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.0 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.2 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.3 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.1 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.4 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.6 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.5 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.7 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.8 vendor/rails/railties/test/plugin_test_helper.rb
backlog-0.3.9 vendor/rails/railties/test/plugin_test_helper.rb