Skip to content

Instantly share code, notes, and snippets.

@jamesmartin
Created February 9, 2011 01:30
Show Gist options
  • Save jamesmartin/817708 to your computer and use it in GitHub Desktop.
Save jamesmartin/817708 to your computer and use it in GitHub Desktop.
Running groups of specs in subdirs of the spec/ dir
desc "Run both API v2 and v3 specs"
task :api => [:apiv2, :apiv3]
desc "Run only API v2 specs"
RSpec::Core::RakeTask.new(:apiv2) do |task|
task.pattern = 'spec/v2/*_spec.rb'
task.rspec_opts = "--format progress --fail-fast"
end
desc "Run only API v3 + Webhooks specs"
RSpec::Core::RakeTask.new(:apiv3) do |task|
task.pattern = 'spec/v3/*_spec.rb'
task.rspec_opts = "--format progress --fail-fast"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment