aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-03-13 23:28:42 +1300
committerPhilip Arndt <parndt@gmail.com>2012-03-13 23:28:42 +1300
commitf0ee9e68891a6436946784d5a7e2124040bc14b4 (patch)
treefa4e7092a67cd72e9eaae736df360392c12dadc8 /railties/lib
parent5088f8ce069f9b2cb2581a7eb286133c19abf302 (diff)
downloadrails-f0ee9e68891a6436946784d5a7e2124040bc14b4.tar.gz
rails-f0ee9e68891a6436946784d5a7e2124040bc14b4.tar.bz2
rails-f0ee9e68891a6436946784d5a7e2124040bc14b4.zip
Fixed problem when fixture_path is not always defined (incidentally, only when ActiveRecord is according to test_help.rb).
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb4
1 files changed, 3 insertions, 1 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 260011c8fd..8d45b2bbd9 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,4 +10,6 @@ Rails.backtrace_cleaner.remove_silencers!
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
# Load fixtures from the engine
-ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) \ No newline at end of file
+if ActiveSupport::TestCase.method_defined?(:fixture_path)
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
+end \ No newline at end of file