Skip to content

Commit

Permalink
Moved Turn activation/dependency to railties
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Mar 31, 2011
1 parent caf0a72 commit 0eb6e5e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 38 deletions.
2 changes: 0 additions & 2 deletions activesupport/CHANGELOG
@@ -1,7 +1,5 @@
*Rails 3.1.0 (unreleased)*

* Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH]

* LocalCache strategy is now a real middleware class, not an anonymous class
posing for pictures.

Expand Down
1 change: 0 additions & 1 deletion activesupport/lib/active_support/test_case.rb
Expand Up @@ -5,7 +5,6 @@
require 'active_support/testing/declarative'
require 'active_support/testing/pending'
require 'active_support/testing/isolation'
require 'active_support/testing/turn_formatting'
require 'active_support/testing/mochaing'
require 'active_support/core_ext/kernel/reporting'

Expand Down
33 changes: 0 additions & 33 deletions activesupport/lib/active_support/testing/turn_formatting.rb

This file was deleted.

1 change: 0 additions & 1 deletion rails.gemspec
Expand Up @@ -25,6 +25,5 @@ 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
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -1,5 +1,7 @@
*Rails 3.1.0 (unreleased)*

* Add using Turn with natural language test case names for test_help.rb when running with minitest (Ruby 1.9.2+) [DHH]

* Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH]

* Added `config.force_ssl` configuration which loads Rack::SSL middleware and force all requests to be under HTTPS protocol [DHH, Prem Sichanugrist, and Josh Peek]
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/console.rb
Expand Up @@ -36,7 +36,7 @@ def start
end

if defined?(ActiveRecord)
ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Base.logger = Logger.new(STDERR)
end

if options[:sandbox]
Expand Down
8 changes: 8 additions & 0 deletions railties/lib/rails/test_help.rb
Expand Up @@ -13,6 +13,14 @@
Test::Unit::Util::BacktraceFilter.module_eval { include Rails::BacktraceFilterForTestUnit }
end

if defined?(MiniTest)
require 'turn'

if MiniTest::Unit.respond_to?(:use_natural_language_case_names=)
MiniTest::Unit.use_natural_language_case_names = true
end
end

if defined?(ActiveRecord)
require 'active_record/test_case'

Expand Down
1 change: 1 addition & 0 deletions railties/railties.gemspec
Expand Up @@ -22,6 +22,7 @@ Gem::Specification.new do |s|
s.add_dependency('rake', '>= 0.8.7')
s.add_dependency('thor', '~> 0.14.4')
s.add_dependency('rack-ssl', '~> 1.3.2')
s.add_dependency('turn', '~> 0.8.2')
s.add_dependency('activesupport', version)
s.add_dependency('actionpack', version)
end

0 comments on commit 0eb6e5e

Please sign in to comment.