diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-03-31 12:11:03 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-03-31 12:11:03 -0700 |
commit | b27057731cba8678265026f0fdfe75f5ae411d4d (patch) | |
tree | e370bfe4ccf47b1d54a827e8b7815865fd079fc3 | |
parent | 7a9dafd96cd4735b9134081f1d8103a6c62a6809 (diff) | |
download | rails-b27057731cba8678265026f0fdfe75f5ae411d4d.tar.gz rails-b27057731cba8678265026f0fdfe75f5ae411d4d.tar.bz2 rails-b27057731cba8678265026f0fdfe75f5ae411d4d.zip |
Use Turn to format all Rails tests and enable the natural language case names
-rw-r--r-- | activesupport/lib/active_support/test_case.rb | 5 | ||||
-rw-r--r-- | rails.gemspec | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index fb52fc7083..a48656192c 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -15,6 +15,11 @@ rescue LoadError Mocha.const_set :ExpectationError, Class.new(StandardError) end +# Added by Turn to support natural case names in the output formatting +if defined?(MiniTest) && MiniTest::Unit.respond_to?(:use_natural_language_case_names=) + MiniTest::Unit.use_natural_language_case_names = true +end + module ActiveSupport class TestCase < ::Test::Unit::TestCase if defined? MiniTest diff --git a/rails.gemspec b/rails.gemspec index 98b5f46554..2711d95f34 100644 --- a/rails.gemspec +++ b/rails.gemspec @@ -25,5 +25,6 @@ Gem::Specification.new do |s| s.add_dependency('activeresource', version) s.add_dependency('actionmailer', version) s.add_dependency('railties', version) + s.add_dependency('turn', '~> 0.8.2') s.add_dependency('bundler', '~> 1.0') end |