From 76ff61540e0e0f79cc53643fdc1b68227ce189e4 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Mon, 2 Apr 2012 18:52:44 +0200 Subject: [PATCH] update rakefile for travis --- Rakefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 96c181f..dd5f8b0 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ #!/usr/bin/env rake begin require 'bundler/setup' + Bundler::GemHelper.install_tasks rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end @@ -11,6 +12,8 @@ rescue LoadError require 'rake/rdoctask' RDoc::Task = Rake::RDocTask end +require 'rspec/core' +require 'rspec/core/rake_task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' @@ -19,8 +22,10 @@ RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end - -APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList['spec/**/*_spec.rb'] +end +APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' @@ -37,4 +42,5 @@ Rake::TestTask.new(:test) do |t| end -task :default => :test + +task :default => :spec