Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix Rakefile to use the new rspec API #27

Merged
merged 1 commit into from

2 participants

@oneacross

Running rake will now kick off rspec by default.
The FileList pattern is not needed, this pattern is the default.

@oneacross oneacross Fix Rakefile to use the new rspec API
The :spec task now exists and is run by default for rake.
3facc06
@NateBarnes
Collaborator

Looks solid, thanks!

@NateBarnes NateBarnes merged commit 2687744 into opengovernment:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 25, 2012
  1. @oneacross

    Fix Rakefile to use the new rspec API

    oneacross authored
    The :spec task now exists and is run by default for rake.
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 9 deletions.
  1. +6 −9 Rakefile
View
15 Rakefile
@@ -60,22 +60,19 @@ Rake::RDocTask.new do |rdoc|
end
-if defined?(Spec)
+if defined?(RSpec)
desc 'Test the govkit plugin.'
- Spec::Rake::SpecTask.new('spec') do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ["-c"]
+ RSpec::Core::RakeTask.new('spec') do |t|
+ t.rspec_opts = ["-c"]
end
desc 'Test the govkit plugin with specdoc formatting and colors'
- Spec::Rake::SpecTask.new('specdoc') do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ["--format specdoc", "-c"]
+ RSpec::Core::RakeTask.new('specdoc') do |t|
+ t.rspec_opts = ["--format specdoc", "-c"]
end
desc "Run all examples with RCov"
- Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
+ RSpec::Core::RakeTask.new('examples_with_rcov') do |t|
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,Library']
end
Something went wrong with that request. Please try again.