Also clear ENV when manipulating it

This commit is contained in:
Henne Vogelsang 2025-08-13 10:58:26 +02:00
parent 3c23b5c8ed
commit 1bae545332
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -16,6 +16,10 @@ describe ConferenceRegistrationsController, type: :controller do
get :new, params: { conference_id: conference.short_title }
end
after :each do
ENV['OSEM_ICHAIN_ENABLED'] = nil
end
it 'redirects' do
expect(response).to redirect_to path
end
@ -32,6 +36,10 @@ describe ConferenceRegistrationsController, type: :controller do
get :new, params: { conference_id: conference.short_title }
end
after :each do
ENV['OSEM_ICHAIN_ENABLED'] = nil
end
it 'user variable exists' do
expect(assigns(:user)).not_to be_nil
end