aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-04-24 10:12:14 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-04-24 10:12:14 -0700
commitf822024cccc5a0d8b16c6a595538f342fd0a6adb (patch)
treea31021b415925775a0aac8e06bb0beb94d1532df /railties/test
parentc873167402df3425e63ac0c9a7fb2e950dacf3eb (diff)
parent55ceced1fbebff2491c282308bcd8c7b2aef5bba (diff)
downloadrails-f822024cccc5a0d8b16c6a595538f342fd0a6adb.tar.gz
rails-f822024cccc5a0d8b16c6a595538f342fd0a6adb.tar.bz2
rails-f822024cccc5a0d8b16c6a595538f342fd0a6adb.zip
Merge pull request #5929 from FLOChip/notes
`rake notes` and `rake notes:custom` now support css, scss, and css.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/rake/notes_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb
index 04abf9e3a1..d069703d30 100644
--- a/railties/test/application/rake/notes_test.rb
+++ b/railties/test/application/rake/notes_test.rb
@@ -17,6 +17,9 @@ module ApplicationTests
app_file "app/views/home/index.html.haml", "-# TODO: note in haml"
app_file "app/views/home/index.html.slim", "/ TODO: note in slim"
app_file "app/assets/javascripts/application.js.coffee", "# TODO: note in coffee"
+ app_file "app/assets/javascripts/application.js", "// TODO: note in js"
+ 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"
boot_rails
@@ -35,8 +38,11 @@ module ApplicationTests
assert_match /note in slim/, output
assert_match /note in ruby/, output
assert_match /note in coffee/, output
+ assert_match /note in js/, output
+ assert_match /note in css/, output
+ assert_match /note in scss/, output
- assert_equal 5, lines.size
+ assert_equal 8, lines.size
lines.each do |line|
assert_equal 4, line[0].size