Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed problem when fixture_path is not always defined (incidentally, …

…only when ActiveRecord is according to test_help.rb).
  • Loading branch information...
commit 5ef806914b4f14e03ab7b6b323141975929bc8ab 1 parent f665e20
@parndt parndt authored
View
4 railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.