Merge pull request #3621 from hennevogel/spec/clear-env

Also clear ENV when manipulating it
This commit is contained in:
Henne Vogelsang 2025-08-13 11:30:33 +02:00 committed by GitHub
commit efc832af46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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