Fixed for locomotive setup test method.

This commit is contained in:
Mario Visic 2011-11-25 23:45:16 +11:00
parent fcd2146c11
commit 1c5d19ad71

View File

@ -29,11 +29,11 @@ def Locomotive.configure_for_test(force = false)
Locomotive.define_subdomain_and_domains_options
Object.send(:remove_const, 'Locomotive::Site') if Object.const_defined?('Locomotive::Site')
Locomotive.send(:remove_const, 'Site') if Locomotive.const_defined?('Site')
load 'locomotive/site.rb'
FactoryGirl.factories.clear
load File.join(Rails.root, 'spec', 'factories.rb')
load File.join(File.dirname(__FILE__), 'factories.rb')
end
end
end