Permalink
Browse files

Set up cucumber and rspec

  • Loading branch information...
1 parent 11274bc commit f140200189b83d07ac7e10775b2a6247d1db69ca Ryan Burrows committed Mar 31, 2010
Showing with 30 additions and 0 deletions.
  1. +28 −0 Rakefile
  2. +1 −0 cucumber.yml
  3. +1 −0 spec/spec.opts
View
@@ -0,0 +1,28 @@
+require 'rubygems'
+
+begin
+ require 'cucumber'
+ require 'cucumber/rake/task'
+
+ Cucumber::Rake::Task.new(:cucumber) do |t|
+ t.cucumber_opts = "--format pretty"
+ end
+rescue LoadError
+ desc 'Cucumber rake task not available'
+ task :cucumber do
+ abort 'Install cucumber as a gem to run tests.'
+ end
+end
+
+begin
+ require 'spec/rake/spectask'
+
+ Spec::Rake::SpecTask.new(:spec) do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ end
+rescue LoadError
+ desc 'RSpec rake task not available'
+ task :spec do
+ abort 'Install rspec as a gem to run tests.'
+ end
+end
View
@@ -0,0 +1 @@
+default: --format progress
View
@@ -0,0 +1 @@
+--color

0 comments on commit f140200

Please sign in to comment.