Clear gon after each rspec test

This commit is contained in:
cmrd Senya 2016-04-20 13:04:35 +03:00
parent 838e5ca432
commit ed7fc10043
No known key found for this signature in database
GPG key ID: 5FCC5BA680E67BFE

View file

@ -128,6 +128,11 @@ RSpec.configure do |config|
ActionMailer::Base.deliveries.clear
end
# Reset gon
config.after(:each) do
RequestStore.store[:gon].gon.clear unless RequestStore.store[:gon].nil?
end
config.include FactoryGirl::Syntax::Methods
end