diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-07 14:36:50 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-07 14:51:23 +0100 |
commit | 518b4ff478984b74085239b0aa69fe67f7c01d9a (patch) | |
tree | e2e3c5aa614c7c9a00b480428057afd84de13435 /railties/lib/generators | |
parent | d6ae930c9cfacf50d65b2880ac21efe80801a33d (diff) | |
download | rails-518b4ff478984b74085239b0aa69fe67f7c01d9a.tar.gz rails-518b4ff478984b74085239b0aa69fe67f7c01d9a.tar.bz2 rails-518b4ff478984b74085239b0aa69fe67f7c01d9a.zip |
Check if Test::Unit is defined before adding backtrace filter.
Diffstat (limited to 'railties/lib/generators')
-rw-r--r-- | railties/lib/generators/rails/app/templates/test/test_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/app/templates/test/test_helper.rb b/railties/lib/generators/rails/app/templates/test/test_helper.rb index 45b551fc7d..005149eba0 100644 --- a/railties/lib/generators/rails/app/templates/test/test_helper.rb +++ b/railties/lib/generators/rails/app/templates/test/test_helper.rb @@ -1,4 +1,5 @@ ENV["RAILS_ENV"] = "test" +require 'test/unit' require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'rails/test_help' |