From 0176aef1ebaa9f69001c7045a51727a8ea9b61b8 Mon Sep 17 00:00:00 2001 From: WAKASUGI 5T111111 Date: Thu, 29 Jan 2015 12:15:42 +0900 Subject: Add fix for loading fixtures in engine tests --- railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties') diff --git a/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb b/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb index bf3da1fc4d..7d0ebf7da5 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb +++ b/railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb @@ -20,4 +20,5 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) + ActiveSupport::TestCase.fixtures :all end -- cgit v1.2.3