Permalink
Browse files

Merge pull request #10082 from vipulnsward/fix_railties_test-v2

fix warnings in railties test
  • Loading branch information...
2 parents f5644b0 + dcc75b0 commit 29146383c5f536b285a27d4e72b4ec75b2e74d50 @steveklabnik steveklabnik committed Apr 4, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/test/application/rake_test.rb
@@ -131,11 +131,11 @@ def test_rake_test_deprecation_messages
%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
+ 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` }
+ 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

0 comments on commit 2914638

Please sign in to comment.