Skip to content

Commit

Permalink
Merge pull request #10082 from vipulnsward/fix_railties_test-v2
Browse files Browse the repository at this point in the history
fix warnings in railties test
  • Loading branch information
steveklabnik committed Apr 4, 2013
2 parents f5644b0 + dcc75b0 commit 2914638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/test/application/rake_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2914638

Please sign in to comment.