Permalink
Browse files

Default rake task to run (r)spec.

  • Loading branch information...
1 parent b72b781 commit e200b9ae5a57a886a4d1febe8c2ecab01c86528a Winston Teo committed Mar 16, 2012
Showing with 12 additions and 0 deletions.
  1. +2 −0 .rspec
  2. +10 −0 Rakefile
View
2 .rspec
@@ -0,0 +1,2 @@
+--colour
+--format nested
View
@@ -1 +1,11 @@
require "bundler/gem_tasks"
+Bundler::GemHelper.install_tasks # Gives us rake build, rake install and rake release
+
+# RSpec Tasks
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = ['--options', '.rspec']
+end
+
+task :default => :spec

0 comments on commit e200b9a

Please sign in to comment.