View specs, added factories, fixed bugs
This commit is contained in:
parent
322ddd1501
commit
d1e9bd06a6
33 changed files with 319 additions and 12 deletions
12
spec/views/admin/conference/new.html.haml_spec.rb
Normal file
12
spec/views/admin/conference/new.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "admin/conference/new" do
|
||||
it 'renders the new template for the conference' do
|
||||
assign(:conference, Conference.new)
|
||||
render
|
||||
expect(rendered).to include('Basic Information')
|
||||
assign(:conference, build(:conference))
|
||||
render
|
||||
expect(rendered).to include('The dog and pony show')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue