use :full_conference factory in the conference view specs
This commit is contained in:
parent
dd5796bd34
commit
1c7becb69a
5 changed files with 38 additions and 63 deletions
|
|
@ -1,12 +1,14 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/conference/new' do
|
||||
let(:conference) { build(:conference) }
|
||||
|
||||
it 'renders the new template for the conference' do
|
||||
assign(:conference, Conference.new)
|
||||
render
|
||||
expect(rendered).to include('Basic Information')
|
||||
assign(:conference, build(:conference))
|
||||
assign(:conference, conference)
|
||||
render
|
||||
expect(rendered).to include('The dog and pony show')
|
||||
expect(rendered).to include(conference.title)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue