From 70846efd02f456bffb327d071309a95c42fa2d18 Mon Sep 17 00:00:00 2001 From: Justin French Date: Mon, 23 Nov 2009 15:20:48 +1100 Subject: [PATCH] fixed an issue where formtastic was being required twice in the specs --- spec/spec_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ac17fdd9f..fd19927f4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -27,9 +27,8 @@ def smart_require(lib_name, gem_name, gem_version = '>= 0.0.0') config.include(CustomMacros) end -$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..')) +require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic')) -require 'lib/formtastic' module FormtasticSpecHelper include ActionView::Helpers::FormHelper