Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update project to use rspec 2.2

  • Loading branch information...
commit 75ed0acd860f459774af2d1b8cac259eba59911e 1 parent bb192ff
@samg authored
Showing with 8 additions and 6 deletions.
  1. +2 −0  .rspec
  2. +6 −4 Rakefile
  3. +0 −2  spec/spec.opts
View
2  .rspec
@@ -0,0 +1,2 @@
+--color
+--profile
View
10 Rakefile
@@ -1,12 +1,14 @@
-require 'spec/rake/spectask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
+require 'rspec/core/rake_task'
+desc 'Default: run specs.'
task :default => :spec
-desc "Run all specs in spec directory"
-Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
+desc "Run specs"
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
+ # Put spec opts in a file named .rspec in root
end
Rake::RDocTask.new do |rd|
View
2  spec/spec.opts
@@ -1,2 +0,0 @@
---color
---format profile
Please sign in to comment.
Something went wrong with that request. Please try again.