Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController'
This commit is contained in:
parent
0b6550d060
commit
daf1f805bd
71 changed files with 225 additions and 191 deletions
14
spec/views/admin/conferences/new.html.haml_spec.rb
Normal file
14
spec/views/admin/conferences/new.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/conferences/new' do
|
||||
let(:conference) { build(:conference) }
|
||||
|
||||
it 'renders the new template for the conference' do
|
||||
assign(:conference, Conference.new)
|
||||
render template: 'admin/conferences/new.html.haml'
|
||||
expect(rendered).to include('Basic Information')
|
||||
assign(:conference, conference)
|
||||
render
|
||||
expect(rendered).to include(CGI.escapeHTML(conference.title))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue