Moves conference show #action to #edit action
This commit is contained in:
parent
89fb059aaa
commit
ab4d3021a2
9 changed files with 80 additions and 42 deletions
12
spec/views/admin/conference/edit.html.haml_spec.rb
Normal file
12
spec/views/admin/conference/edit.html.haml_spec.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue