diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2014-03-14 17:51:14 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2014-03-14 17:51:14 -0500 |
commit | f43421cb65da635988f2bb5341d519c3c2748b74 (patch) | |
tree | 924ea8e94325e3af19243ac1d3076555126501ee /railties/test | |
parent | 810af6f6ee62d76e9ed529d93ea9686a45e5a81e (diff) | |
download | rails-f43421cb65da635988f2bb5341d519c3c2748b74.tar.gz rails-f43421cb65da635988f2bb5341d519c3c2748b74.tar.bz2 rails-f43421cb65da635988f2bb5341d519c3c2748b74.zip |
Supporting .ruby, .yml and .yaml Extension in Rake Notes
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/rake/notes_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb index 2191de32af..b6b1bd63f4 100644 --- a/railties/test/application/rake/notes_test.rb +++ b/railties/test/application/rake/notes_test.rb @@ -24,6 +24,9 @@ module ApplicationTests 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" app_file 'app/views/home/index.html.builder', '# TODO: note in builder' + app_file 'config/locales/en.yml', '# TODO: note in yml' + app_file 'config/locales/en.yaml', '# TODO: note in yml' + app_file "app/views/home/index.ruby", "# TODO: note in ruby" boot_rails require 'rake' @@ -42,8 +45,10 @@ module ApplicationTests assert_match(/note in css/, output) assert_match(/note in rake/, output) assert_match(/note in builder/, output) + assert_match(/note in yml/, output) + assert_match(/note in yaml/, output) - assert_equal 6, lines.size + assert_equal 9, lines.size lines.each do |line| assert_equal 4, line[0].size |