I’ve written a “TODO” comment in a xxx_controller_spec.rb. When I run
the
“rake notes” command, it doesn’t appear in the output, while other notes
written in the “app” dir are shown correctly.
Could someone tell me how to fix this? Whether I should hack the rails
rake
code?
Thanks!
–
regards,
Kai Fu
Material Science and Engineering
Huazhong University of Science and Technology
Wuhan
E-mail: [email protected]
I’ve written a “TODO” comment in a xxx_controller_spec.rb. When I run the
“rake notes” command, it doesn’t appear in the output, while other notes
written in the “app” dir are shown correctly.
Could someone tell me how to fix this? Whether I should hack the rails rake
code?
I imagine you’d have to hack either rails or RSpec code to support
this. I haven’t looked.
class SourceAnnotationExtractor
def find_with_custom_directories
find_without_custom_directories(%w(app lib spec features))
end
alias_method_chain :find, :custom_directories
end
…where %w(app lib spec features) is a list of directories that you
want rake:notes to traverse.
Cheers,
Steven…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.