Browse files

Use strip_heredoc in the tests as well.

Thanks @sikachu. 😅
  • Loading branch information...
1 parent 13c9195 commit f4f0264b45470575a94a05da4571c714be3d2e24 @steveklabnik steveklabnik committed Feb 18, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 railties/test/application/rake_test.rb
View
11 railties/test/application/rake_test.rb
@@ -1,5 +1,6 @@
# coding:utf-8
require "isolation/abstract_unit"
+require "active_support/core_ext/string/strip"
module ApplicationTests
class RakeTest < ActiveSupport::TestCase
@@ -149,13 +150,13 @@ def test_rake_routes_displays_message_when_no_routes_are_defined
end
RUBY
- assert_equal <<-MESSAGE, Dir.chdir(app_path){ `rake routes` }
-You don't have any routes defined!
+ assert_equal <<-MESSAGE.strip_heredoc, Dir.chdir(app_path){ `rake routes` }
+ You don't have any routes defined!
-Please add some routes in config/routes.rb.
+ Please add some routes in config/routes.rb.
-For more information about routes, see the Rails Guide: http://guides.rubyonrails.org/routing.html .
-MESSAGE
+ For more information about routes, see the Rails Guide: http://guides.rubyonrails.org/routing.html .
+ MESSAGE
end
def test_logger_is_flushed_when_exiting_production_rake_tasks

0 comments on commit f4f0264

Please sign in to comment.