Skip to content
Browse files

Merge pull request #5398 from parndt/fix_issue_5193

Fix issue 5193
  • Loading branch information...
2 parents a9320f7 + 5ef8069 commit d2ac18a822ff75f12a0f716dca6c74b411f9f7c1 @josevalim josevalim committed Mar 13, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
View
5 railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
@@ -8,3 +8,8 @@
# 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

0 comments on commit d2ac18a

Please sign in to comment.
Something went wrong with that request. Please try again.