Get rid of the home controller
This commit is contained in:
parent
a41f76cca1
commit
e65ca7fb58
11 changed files with 64 additions and 56 deletions
10
spec/views/conference/index.html.haml_spec.rb
Normal file
10
spec/views/conference/index.html.haml_spec.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'conference/index' do
|
||||
it 'renders _conference partial for each conference' do
|
||||
allow(view).to receive(:date_string).and_return('January 17 - 21 2014')
|
||||
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