Skip to content
Browse files

Merge pull request #5406 from parndt/fix_issue_5193_in_master

Fix issue #5193 in master
  • Loading branch information...
2 parents 0e502e0 + f0ee9e6 commit fc3e9b32fd88e19033c24136d5c06baa1a295084 @josevalim josevalim committed
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 fc3e9b3

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