aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-03-10 23:55:36 +1300
committerPhilip Arndt <parndt@gmail.com>2012-03-13 14:20:11 +1300
commitf665e20dbfcd4cb085a4fedf58983af9a1fb157b (patch)
treeb4de574072c706c65ee06c2b8d1c4bb68283c449 /railties/lib/rails/generators
parent5f26ce699f9e695c434cbff20626a9ff4d3114e4 (diff)
downloadrails-f665e20dbfcd4cb085a4fedf58983af9a1fb157b.tar.gz
rails-f665e20dbfcd4cb085a4fedf58983af9a1fb157b.tar.bz2
rails-f665e20dbfcd4cb085a4fedf58983af9a1fb157b.zip
Fixes issue #5193 using the instructions provided in the issue.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb3
1 files changed, 3 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..260011c8fd 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,6 @@ Rails.backtrace_cleaner.remove_silencers!
# Load support files
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