Removed duplicate date_string method
This commit is contained in:
parent
390e68b1ac
commit
5b3b054d0b
7 changed files with 6 additions and 42 deletions
|
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
|||
|
||||
describe 'conferences/index' do
|
||||
it 'renders _conference partial for each conference' do
|
||||
allow(view).to receive(:date_string).and_return('January 17 - 21 2014')
|
||||
allow(view).to receive(:date_range_string).and_return('January 17 - 21 2014')
|
||||
assign(:current, [create(:conference), create(:conference)])
|
||||
render
|
||||
expect(view).to render_template(partial: '_conference_details', count: 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue