Skip to content

Instantly share code, notes, and snippets.

@jrab89
Created August 21, 2014 16:00
Show Gist options
  • Save jrab89/27b8dacccd09d15f8ebb to your computer and use it in GitHub Desktop.
Save jrab89/27b8dacccd09d15f8ebb to your computer and use it in GitHub Desktop.
Is there a cleaner way to do this?
desc "Run cucumber tests on each feature file in parallel, exits 0 if they all succeed and 1 otherwise"
task :test, :exclude do |task, args|
features_to_exclude = args.has_key?(:exclude) ? args[:exclude].split(' ') : []
# actually task here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment