Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed rakefile to work with rspec 2

  • Loading branch information...
commit 3c6173f477275b73efdafda8b8686ae2390db1aa 1 parent 7b10ea2
@samg authored
Showing with 7 additions and 5 deletions.
  1. +2 −0  .rspec
  2. +1 −0  Gemfile
  3. +4 −5 Rakefile
View
2  .rspec
@@ -0,0 +1,2 @@
+--color
+--profile
View
1  Gemfile
@@ -1,4 +1,5 @@
group :test, :development do
gem 'rspec', "~>2.0"
+ gem 'rake', '0.8.7'
end
View
9 Rakefile
@@ -1,13 +1,12 @@
-require 'spec/rake/spectask'
require 'rake/rdoctask'
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
+require 'rspec/core/rake_task'
task :default => :spec
desc "Run all specs in spec directory"
-Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = %w{--color --format profile}
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
end
Rake::RDocTask.new do |rd|
Please sign in to comment.
Something went wrong with that request. Please try again.