Fixed problem when fixture_path is not always defined (incidentally, only when ActiveRecord is according to test_help.rb).

This commit is contained in:
Philip Arndt 2012-03-13 23:28:42 +13:00
parent 5088f8ce06
commit f0ee9e6889

@ -10,4 +10,6 @@
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
# Load fixtures from the engine
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
if ActiveSupport::TestCase.method_defined?(:fixture_path)
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
end