This commit is contained in:
Christopher Byrd 2017-03-10 16:41:28 +00:00 committed by GitHub
commit 75dc414dda
6 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -3,7 +3,7 @@ describe 'conferences/show.html.haml' do
let!(:conference) { create(:full_conference) }
before(:each) 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 :conference, conference
render
end