aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-29 15:31:31 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-04-03 12:16:19 -0400
commit29f973c92c848345a3b8eabe5a6123e68a3df7f9 (patch)
tree0a80af60fba5e7a475ccc1781c0e82311836a464 /railties/test/application/rake_test.rb
parent7b295ef369a0909383b011fcaeeb2d94d2de8c48 (diff)
downloadrails-29f973c92c848345a3b8eabe5a6123e68a3df7f9.tar.gz
rails-29f973c92c848345a3b8eabe5a6123e68a3df7f9.tar.bz2
rails-29f973c92c848345a3b8eabe5a6123e68a3df7f9.zip
Revert "Update Rake tasks to call `rails test` instead"
This reverts commit b51673fbd9563bd3ffa22e22255ca1cef80cfb6d.
Diffstat (limited to 'railties/test/application/rake_test.rb')
-rw-r--r--railties/test/application/rake_test.rb23
1 files changed, 10 insertions, 13 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb
index a9e0e1bcb7..09f2ad1209 100644
--- a/railties/test/application/rake_test.rb
+++ b/railties/test/application/rake_test.rb
@@ -91,9 +91,19 @@ module ApplicationTests
raise 'models'
RUBY
+ app_file "test/controllers/one_controller_test.rb", <<-RUBY
+ raise 'controllers'
+ RUBY
+
+ app_file "test/integration/one_integration_test.rb", <<-RUBY
+ raise 'integration'
+ RUBY
+
silence_stderr do
output = Dir.chdir(app_path) { `rake test 2>&1` }
assert_match 'models', output
+ assert_match 'controllers', output
+ assert_match 'integration', output
end
end
@@ -125,19 +135,6 @@ module ApplicationTests
end
end
- def test_rake_test_deprecation_messages
- Dir.chdir(app_path){ `rails generate scaffold user name:string` }
- Dir.chdir(app_path){ `rake db:migrate` }
-
- %w(run recent uncommitted models helpers units controllers functionals integration).each do |test_suit_name|
- output = Dir.chdir(app_path) { `rake test:#{test_suit_name} 2>&1` }
- assert_match /DEPRECATION WARNING: `rake test:#{test_suit_name}` is deprecated/, output
- end
-
- assert_match /DEPRECATION WARNING: `rake test:single` is deprecated/,
- Dir.chdir(app_path) { `rake test:single TEST=test/models/user_test.rb 2>&1` }
- end
-
def test_rake_routes_calls_the_route_inspector
app_file "config/routes.rb", <<-RUBY
AppTemplate::Application.routes.draw do