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|
|
shared_examples 'access #new action' do |user, ichain, path, message|
|
||||||
before :each do
|
before :each do
|
||||||
sign_in send(user) if user
|
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 }
|
get :new, params: { conference_id: conference.short_title }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -28,7 +28,7 @@ describe ConferenceRegistrationsController, type: :controller do
|
||||||
shared_examples 'can access #new action' do |user, ichain|
|
shared_examples 'can access #new action' do |user, ichain|
|
||||||
before :each do
|
before :each do
|
||||||
sign_in send(user) if user
|
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 }
|
get :new, params: { conference_id: conference.short_title }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue