diff options
author | Philip Arndt <parndt@gmail.com> | 2012-03-13 23:27:50 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-03-13 23:27:50 +1300 |
commit | 5088f8ce069f9b2cb2581a7eb286133c19abf302 (patch) | |
tree | faaae6e2e44c811bba764b34effc19643293265b | |
parent | ce72c0c784c877cc609936643d71c52724582188 (diff) | |
download | rails-5088f8ce069f9b2cb2581a7eb286133c19abf302.tar.gz rails-5088f8ce069f9b2cb2581a7eb286133c19abf302.tar.bz2 rails-5088f8ce069f9b2cb2581a7eb286133c19abf302.zip |
Fixes issue #5193 using the instructions provided in the issue.
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb | 3 |
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 |