diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-03-13 21:28:34 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-13 21:28:34 +0100 |
commit | 919db1bbbb9c2565c2dc1816812b7031f74b4e8e (patch) | |
tree | ef5894d24dd4f76e0fd72449238791036541ccea | |
parent | 52bfb487454f2288978ed3f12261c08cb437948f (diff) | |
download | rails-919db1bbbb9c2565c2dc1816812b7031f74b4e8e.tar.gz rails-919db1bbbb9c2565c2dc1816812b7031f74b4e8e.tar.bz2 rails-919db1bbbb9c2565c2dc1816812b7031f74b4e8e.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.rb | 4 |
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 |