Last active
December 16, 2015 16:20
-
-
Save showaltb/73b259a3236a0107bba5 to your computer and use it in GitHub Desktop.
Add Rspec and Cucumber to Rails "rake notes"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to lib/tasks/notes.rb: | |
task :configure_annotations do | |
Rails.application.configure do | |
config.annotations.directories.concat %w(spec features) | |
config.annotations.register_extensions('feature') { |tag| /#\s*(#{tag}):?\s*(.*)$/ } | |
end | |
end | |
task :notes => :configure_annotations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment