Clear gon after each rspec test
This commit is contained in:
parent
838e5ca432
commit
ed7fc10043
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue