View specs, added factories, fixed bugs
This commit is contained in:
parent
322ddd1501
commit
d1e9bd06a6
33 changed files with 319 additions and 12 deletions
9
spec/views/home/index.html.haml_spec.rb
Normal file
9
spec/views/home/index.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "home/index" do
|
||||
it "renders _conference partial for each conference" do
|
||||
assign(:current, [create(:conference), create(:conference)])
|
||||
render
|
||||
expect(view).to render_template(:partial => "_conference_details", :count => 2)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue