diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-02-18 16:26:25 -0800 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-02-18 16:26:25 -0800 |
commit | f4f0264b45470575a94a05da4571c714be3d2e24 (patch) | |
tree | 5524696b51e413c75e23ce16eb4098b6e972c552 /railties/test/application | |
parent | 13c9195b12e2a6c87056d24968f092ba97e14364 (diff) | |
download | rails-f4f0264b45470575a94a05da4571c714be3d2e24.tar.gz rails-f4f0264b45470575a94a05da4571c714be3d2e24.tar.bz2 rails-f4f0264b45470575a94a05da4571c714be3d2e24.zip |
Use strip_heredoc in the tests as well.
Thanks @sikachu. :sweat_smile:
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake_test.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index a205b289fe..864d23522d 100644 --- a/railties/test/application/rake_test.rb +++ b/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 @@ module ApplicationTests 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 |