Created
February 9, 2011 01:30
-
-
Save jamesmartin/817708 to your computer and use it in GitHub Desktop.
Running groups of specs in subdirs of the spec/ dir
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
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