Merge pull request #3621 from hennevogel/spec/clear-env
Also clear ENV when manipulating it
This commit is contained in:
commit
efc832af46
1 changed files with 8 additions and 0 deletions
|
|
@ -16,6 +16,10 @@ describe ConferenceRegistrationsController, type: :controller do
|
||||||
get :new, params: { conference_id: conference.short_title }
|
get :new, params: { conference_id: conference.short_title }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after :each do
|
||||||
|
ENV['OSEM_ICHAIN_ENABLED'] = nil
|
||||||
|
end
|
||||||
|
|
||||||
it 'redirects' do
|
it 'redirects' do
|
||||||
expect(response).to redirect_to path
|
expect(response).to redirect_to path
|
||||||
end
|
end
|
||||||
|
|
@ -32,6 +36,10 @@ describe ConferenceRegistrationsController, type: :controller do
|
||||||
get :new, params: { conference_id: conference.short_title }
|
get :new, params: { conference_id: conference.short_title }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after :each do
|
||||||
|
ENV['OSEM_ICHAIN_ENABLED'] = nil
|
||||||
|
end
|
||||||
|
|
||||||
it 'user variable exists' do
|
it 'user variable exists' do
|
||||||
expect(assigns(:user)).not_to be_nil
|
expect(assigns(:user)).not_to be_nil
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue