mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
ENV is not a constant...
This commit is contained in:
parent
58d1ac5899
commit
ac38359141
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue