Permalink
Browse files

Fixed rakefile to work with rspec 2

  • Loading branch information...
1 parent 7b10ea2 commit 3c6173f477275b73efdafda8b8686ae2390db1aa @samg committed Jun 20, 2011
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,4 +1,5 @@
group :test, :development do
gem 'rspec', "~>2.0"
+ gem 'rake', '0.8.7'
end
View
@@ -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|

0 comments on commit 3c6173f

Please sign in to comment.