1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use strip_heredoc in the tests as well.

Thanks @sikachu. 😅
This commit is contained in:
Steve Klabnik 2013-02-18 16:26:25 -08:00
parent 13c9195b12
commit f4f0264b45

View file

@ -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