Permalink
Browse files

Setup rspec

  • Loading branch information...
1 parent d50f30e commit ca2d12f4cb643fbaaab6c791735746b2ef2c1007 @jferris jferris committed Nov 11, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −0 .rspec
  2. +6 −1 Rakefile
  3. +2 −0 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+--color
View
@@ -1,6 +1,7 @@
require 'rubygems'
require 'bundler/setup'
require 'rake/gempackagetask'
+require 'rspec/core/rake_task'
require 'cucumber/rake/task'
eval("$specification = #{IO.read('appraisal.gemspec')}")
@@ -9,11 +10,15 @@ Rake::GemPackageTask.new($specification) do |package|
package.need_tar = true
end
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+end
+
Cucumber::Rake::Task.new(:cucumber) do |t|
t.fork = true
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
desc "Default: run the cucumber scenarios"
-task :default => :cucumber
+task :default => [:spec, :cucumber]
View
@@ -0,0 +1,2 @@
+require 'rubygems'
+require 'bundler/setup'

0 comments on commit ca2d12f

Please sign in to comment.