aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-03-13 01:57:11 -0700
committerJosé Valim <jose.valim@gmail.com>2012-03-13 01:57:11 -0700
commitd2ac18a822ff75f12a0f716dca6c74b411f9f7c1 (patch)
tree2c9f5ea7708a673f99b88d60f2c73beed0218c08 /railties/lib
parenta9320f7c0bb27e41dc7c3bacc5084341c6aac2bc (diff)
parent5ef806914b4f14e03ab7b6b323141975929bc8ab (diff)
downloadrails-d2ac18a822ff75f12a0f716dca6c74b411f9f7c1.tar.gz
rails-d2ac18a822ff75f12a0f716dca6c74b411f9f7c1.tar.bz2
rails-d2ac18a822ff75f12a0f716dca6c74b411f9f7c1.zip
Merge pull request #5398 from parndt/fix_issue_5193
Fix issue 5193
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb5
1 files changed, 5 insertions, 0 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 dcd3b276e3..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
@@ -8,3 +8,8 @@ Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+
+# Load fixtures from the engine
+if ActiveSupport::TestCase.method_defined?(:fixture_path)
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
+end \ No newline at end of file