mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update and fix test kitchet to be conformant with poltergeist
This commit is contained in:
parent
7f710ec72d
commit
dbb210908b
6 changed files with 62 additions and 34 deletions
|
|
@ -13,11 +13,15 @@ describe Admin::ConferenceController do
|
|||
let(:participant) { create(:participant) }
|
||||
|
||||
shared_examples 'access as administration or organizer' do
|
||||
|
||||
describe 'PATCH #update' do
|
||||
|
||||
context 'valid attributes' do
|
||||
|
||||
it 'locates the requested conference' do
|
||||
patch :update, id: conference.short_title, conference:
|
||||
attributes_for(:conference, title: 'Example Con')
|
||||
|
||||
expect(assigns(:conference)).to eq(conference)
|
||||
end
|
||||
|
||||
|
|
@ -192,7 +196,7 @@ describe Admin::ConferenceController do
|
|||
|
||||
describe 'administrator access' do
|
||||
|
||||
before(:each) do
|
||||
before do
|
||||
sign_in(admin)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue