mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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 }
|
||||
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