Moves conference show #action to #edit action

This commit is contained in:
Chrisbr 2014-05-23 13:01:23 +02:00
parent 89fb059aaa
commit ab4d3021a2
9 changed files with 80 additions and 42 deletions

View file

@ -0,0 +1,12 @@
require 'spec_helper'
describe 'admin/conference/edit' do
it 'renders conference details which are editable' do
@conference = create(:conference, title: 'OpenSUSE')
assign :conference, @conference
render template: 'admin/conference/edit.html.haml'
expect(rendered).to include('OpenSUSE')
expect(rendered).to include("#{@conference.contact_email}")
end
end