2014-05-19 12:24:48 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
2016-09-14 22:42:04 -04:00
|
|
|
describe 'admin/conferences/new' do
|
2016-05-02 15:21:45 +02:00
|
|
|
let(:conference) { build(:conference) }
|
|
|
|
|
|
2014-05-19 12:24:48 +05:30
|
|
|
it 'renders the new template for the conference' do
|
|
|
|
|
assign(:conference, Conference.new)
|
2016-09-14 22:42:04 -04:00
|
|
|
render template: 'admin/conferences/new.html.haml'
|
2014-05-19 12:24:48 +05:30
|
|
|
expect(rendered).to include('Basic Information')
|
2016-05-02 15:21:45 +02:00
|
|
|
assign(:conference, conference)
|
2014-05-19 12:24:48 +05:30
|
|
|
render
|
2016-05-02 17:39:06 +02:00
|
|
|
expect(rendered).to include(CGI.escapeHTML(conference.title))
|
2014-05-19 12:24:48 +05:30
|
|
|
end
|
|
|
|
|
end
|