From 8690ff40d4f0e08306c6359bb26af2c92ee6426c Mon Sep 17 00:00:00 2001 From: Fran Casas Date: Thu, 6 Oct 2016 16:02:00 +0200 Subject: [PATCH] Better setup appraisal --- Rakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 0fcf855..98c9b43 100644 --- a/Rakefile +++ b/Rakefile @@ -2,7 +2,12 @@ require 'rubygems' require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' +require 'appraisal' -RSpec::Core::RakeTask.new(:spec) +RSpec::Core::RakeTask.new(:test) -task default: :spec +if !ENV['APPRAISAL_INITIALIZED'] && !ENV['TRAVIS'] + task default: :appraisal +else + task default: :test +end