Permalink
Browse files

FIX: Update Rakefile

  • Loading branch information...
1 parent 2ad6361 commit 32a7cc5a6883fee39eca666172ece67b5e56ee2b @rudionrails committed Apr 14, 2012
Showing with 22 additions and 1 deletion.
  1. +22 −1 Rakefile
View
@@ -1 +1,22 @@
-require "bundler/gem_tasks"
+$:.unshift( 'lib' )
+
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
+# === RSpec
+begin
+ require 'rspec/core/rake_task'
+
+ desc "Run specs"
+ RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = %w(--color --format progress --order random)
+ t.ruby_opts = %w(-w)
+ end
+rescue LoadError
+ task :spec do
+ abort "`gem install rspec` in order to run tests"
+ end
+end
+
+task :default => :spec
+

0 comments on commit 32a7cc5

Please sign in to comment.