Permalink
Browse files

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

  • Loading branch information...
drogus committed Mar 13, 2012
1 parent 52bfb48 commit 919db1bbbb9c2565c2dc1816812b7031f74b4e8e
Showing with 2 additions and 2 deletions.
  1. +2 −2 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__)
-end
+end

1 comment on commit 919db1b

@parndt

This comment has been minimized.

Show comment
Hide comment
@parndt

parndt Mar 13, 2012

Contributor

👍

Contributor

parndt commented on 919db1b Mar 13, 2012

👍

Please sign in to comment.