Skip to content

Instantly share code, notes, and snippets.

@showaltb
Last active December 16, 2015 16:20
Show Gist options
  • Save showaltb/73b259a3236a0107bba5 to your computer and use it in GitHub Desktop.
Save showaltb/73b259a3236a0107bba5 to your computer and use it in GitHub Desktop.
Add Rspec and Cucumber to Rails "rake notes"
# 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