aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-03-13 21:28:34 +0100
committerPiotr Sarnacki <drogus@gmail.com>2012-03-15 04:37:13 +0100
commit9dfb41fd2e90398cf96db5f33105be26a09cb92c (patch)
treef5894df7d7577f02b460c443fe3eb7dbeb37d5c0
parentccf4ff0360978ea34947e5ca0d9cdea2a026fb7a (diff)
downloadrails-9dfb41fd2e90398cf96db5f33105be26a09cb92c.tar.gz
rails-9dfb41fd2e90398cf96db5f33105be26a09cb92c.tar.bz2
rails-9dfb41fd2e90398cf96db5f33105be26a09cb92c.zip
Check for existence of exactly the called `fixture_path=` method
-rw-r--r--railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb b/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
index 8d45b2bbd9..1e26a313cd 100644
--- a/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
+++ b/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
@@ -10,6 +10,6 @@ Rails.backtrace_cleaner.remove_silencers!
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 \ No newline at end of file
+end