Skip to content
Browse files

Check for existence of exactly the called `fixture_path=` method

  • Loading branch information...
1 parent 52bfb48 commit 919db1bbbb9c2565c2dc1816812b7031f74b4e8e @drogus drogus committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
4 railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
@@ -10,6 +10,6 @@
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
# Load fixtures from the engine
-if ActiveSupport::TestCase.method_defined?(:fixture_path)
+if ActiveSupport::TestCase.method_defined?(:fixture_path=)
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)

1 comment on commit 919db1b

Please sign in to comment.
Something went wrong with that request. Please try again.