Fixed for locomotive setup test method.
This commit is contained in:
parent
fcd2146c11
commit
1c5d19ad71
@ -29,11 +29,11 @@ def Locomotive.configure_for_test(force = false)
|
|||||||
|
|
||||||
Locomotive.define_subdomain_and_domains_options
|
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'
|
load 'locomotive/site.rb'
|
||||||
|
|
||||||
FactoryGirl.factories.clear
|
FactoryGirl.factories.clear
|
||||||
load File.join(Rails.root, 'spec', 'factories.rb')
|
load File.join(File.dirname(__FILE__), 'factories.rb')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user