Permalink
Browse files

Merge pull request #11900 from onlymejosh/add_less_to_rake_todos

Adding LESS to rake notes
  • Loading branch information...
2 parents e90f0e0 + f307377 commit bd493b954c67f52354761da0c7abee9a468b4e0c @senny senny committed Aug 15, 2013
View
@@ -1,3 +1,7 @@
+* rake notes now searches *.less files
+
+ *Josh Crowder*
+
* Generate nested route for namespaced controller generated using
`rails g controller`.
Fixes #11532.
@@ -82,7 +82,7 @@ def find_in(dir)
case item
when /\.(builder|rb|coffee|rake)$/
/#\s*(#{tag}):?\s*(.*)$/
- when /\.(css|scss|sass|js)$/
+ when /\.(css|scss|sass|less|js)$/
/\/\/\s*(#{tag}):?\s*(.*)$/
when /\.erb$/
/<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/
@@ -25,6 +25,7 @@ def teardown
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/assets/stylesheets/application.css.sass", "// TODO: note in sass"
+ app_file "app/assets/stylesheets/application.css.less", "// TODO: note in less"
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"
@@ -48,6 +49,7 @@ def teardown
assert_match(/note in css/, output)
assert_match(/note in scss/, output)
assert_match(/note in sass/, output)
+ assert_match(/note in less/, output)
assert_match(/note in rake/, output)
assert_equal 10, lines.size

0 comments on commit bd493b9

Please sign in to comment.