From 56657a8f65a89dddf275132a8d430e677a50207d Mon Sep 17 00:00:00 2001 From: Simone Carletti Date: Thu, 14 Jun 2012 15:04:30 +0200 Subject: [PATCH] Require 'spec', it is included in the .gemspec and requires manual require. --- spec/spec_helper.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6f1dd6867..900caa382 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,7 @@ -spec_dir = File.expand_path("..", __FILE__) -lib_dir = File.expand_path("../lib", spec_dir) - -$LOAD_PATH.unshift(lib_dir) +$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__)) $LOAD_PATH.uniq! +require 'rspec' + RSpec.configure do |config| end