Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 6d4b6a247e
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.854 kB
$:.unshift File.dirname(__FILE__) + "/../lib"
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
require 'test/unit'
require 'active_support'
require 'initializer'
require 'abstract_unit'
# We need to set RAILS_ROOT if it isn't already set
RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
class Test::Unit::TestCase
private
def plugin_fixture_root_path
File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'plugins'))
end
def only_load_the_following_plugins!(plugins)
@initializer.configuration.plugins = plugins
end
def plugin_fixture_path(path)
File.join(plugin_fixture_root_path, path)
end
def assert_plugins(list_of_names, array_of_plugins, message=nil)
assert_equal list_of_names.map { |n| n.to_s }, array_of_plugins.map { |p| p.name }, message
end
end
Jump to Line
Something went wrong with that request. Please try again.