ENV is not a constant...

This commit is contained in:
Henne Vogelsang 2024-03-26 17:11:25 +01:00
parent 58d1ac5899
commit ac38359141
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -12,7 +12,7 @@ describe ConferenceRegistrationsController, type: :controller do
shared_examples 'access #new action' do |user, ichain, path, message|
before :each do
sign_in send(user) if user
stub_const('ENV', ENV.to_hash.merge('OSEM_ICHAIN_ENABLED' => ichain))
ENV['OSEM_ICHAIN_ENABLED'] = ichain
get :new, params: { conference_id: conference.short_title }
end
@ -28,7 +28,7 @@ describe ConferenceRegistrationsController, type: :controller do
shared_examples 'can access #new action' do |user, ichain|
before :each do
sign_in send(user) if user
stub_const('ENV', ENV.to_hash.merge('OSEM_ICHAIN_ENABLED' => ichain))
ENV['OSEM_ICHAIN_ENABLED'] = ichain
get :new, params: { conference_id: conference.short_title }
end