Permalink
Browse files

Safely require rspec Rake tasks, rake spec now runs as default task, …

…should be ready for travis CI
  • Loading branch information...
1 parent a6e1f86 commit e35f86fe50a12ad20680c23808eeb44717886ccb @davidjrice davidjrice committed Oct 25, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 Rakefile
View
@@ -1,3 +1,14 @@
require 'bundler/gem_tasks'
Dir.glob('./lib/tasks/*.rake').each { |r| import r }
+begin
+ require 'rspec/core/rake_task'
+
+ desc "Run all 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
+
+ task :default => :spec
+end

0 comments on commit e35f86f

Please sign in to comment.