From 4bb35e6af1e5b78f6aa9eed18f7e8a2806cecebf Mon Sep 17 00:00:00 2001 From: John Bender Date: Thu, 21 Jan 2010 21:07:01 -0800 Subject: [PATCH] moved vendor require to test_helper --- Rakefile | 17 +---------------- test/test_helper.rb | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Rakefile b/Rakefile index 434ee68bf..6f8e9dd12 100644 --- a/Rakefile +++ b/Rakefile @@ -1,18 +1,3 @@ -begin - require File.join(File.dirname(__FILE__), 'vendor', 'gems', 'environment') -rescue LoadError - puts <<-ENVERR -================================================== -ERROR: Gem environment file not found! - -Hobo uses bundler to handle gem dependencies. To setup the -test environment, please run `gem bundle test` If you don't -have bundler, you can install that with `gem install bundler` -================================================== -ENVERR - exit -end - require 'rake/testtask' task :default => :test @@ -20,4 +5,4 @@ task :default => :test Rake::TestTask.new do |t| t.libs << "test" t.pattern = 'test/*_test.rb' -end \ No newline at end of file +end diff --git a/test/test_helper.rb b/test/test_helper.rb index d0f994e17..0594ba252 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1 +1,16 @@ +begin + require File.join(File.dirname(__FILE__), 'vendor', 'gems', 'environment') +rescue LoadError + puts <<-ENVERR +================================================== +ERROR: Gem environment file not found! + +Hobo uses bundler to handle gem dependencies. To setup the +test environment, please run `gem bundle test` If you don't +have bundler, you can install that with `gem install bundler` +================================================== +ENVERR + exit +end + require 'contest'