Update and fix test kitchet to be conformant with poltergeist

This commit is contained in:
KalabiYau 2014-07-04 22:35:47 +02:00 committed by Artem Chernikov
parent 7f710ec72d
commit dbb210908b
6 changed files with 62 additions and 34 deletions

View file

@ -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