diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-12 09:52:40 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-12 09:52:40 -0700 |
commit | d08b89fa4b422c66b4e408d87e5d8e198299a2bd (patch) | |
tree | d12679e4d8a93d66ba120eb1cf61e2d8c4856f6c /railties/test/application | |
parent | 168df24ac87c2f8a07b05489140bf337ddab440a (diff) | |
parent | 06129c0e3fb0f20df6c0aa1509b151c51e71d180 (diff) | |
download | rails-d08b89fa4b422c66b4e408d87e5d8e198299a2bd.tar.gz rails-d08b89fa4b422c66b4e408d87e5d8e198299a2bd.tar.bz2 rails-d08b89fa4b422c66b4e408d87e5d8e198299a2bd.zip |
Merge pull request #7871 from bjnord/master
Support another file type .rake in `rake notes`
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake/notes_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb index 27de75b63b..7a227098ba 100644 --- a/railties/test/application/rake/notes_test.rb +++ b/railties/test/application/rake/notes_test.rb @@ -25,6 +25,7 @@ module ApplicationTests app_file "app/assets/stylesheets/application.css", "// TODO: note in css" app_file "app/assets/stylesheets/application.css.scss", "// TODO: note in scss" app_file "app/controllers/application_controller.rb", 1000.times.map { "" }.join("\n") << "# TODO: note in ruby" + app_file "lib/tasks/task.rake", "# TODO: note in rake" boot_rails require 'rake' @@ -45,8 +46,9 @@ module ApplicationTests assert_match(/note in js/, output) assert_match(/note in css/, output) assert_match(/note in scss/, output) + assert_match(/note in rake/, output) - assert_equal 8, lines.size + assert_equal 9, lines.size lines.each do |line| assert_equal 4, line[0].size |