Permalink
Browse files

Only require ginger if we're using the ginger task, so that "rake spe…

…c" still works.
  • Loading branch information...
1 parent df32897 commit 426de312a83d47d155548cf335d942ebcdc90316 @myronmarston committed Mar 15, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 Rakefile
  2. +1 −1 spec/spec_helper.rb
View
@@ -47,6 +47,7 @@ end
desc 'Run ginger tests'
task :ginger do
+ ENV['USE_GINGER'] = 'true'
$LOAD_PATH << File.join(*%w[vendor ginger lib])
ARGV.clear
ARGV << 'spec'
View
@@ -1,6 +1,6 @@
require 'rubygems'
$LOAD_PATH << File.join(File.dirname(__FILE__), *%w[.. vendor ginger lib])
-require 'ginger'
+require 'ginger' if ENV['USE_GINGER']
require 'email_blacklist'
require 'spec'
require 'spec/autorun'

0 comments on commit 426de31

Please sign in to comment.