mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Also clear ENV when manipulating it
This commit is contained in:
parent
3c23b5c8ed
commit
1bae545332
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 }
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue