mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 12:14:03 +00:00
17 lines
607 B
Ruby
17 lines
607 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'admin/callforpapers/show' do
|
|
|
|
it 'renders callforpapers details' do
|
|
@conference = create(:conference)
|
|
assign :conference, @conference
|
|
assign :cfp, stub_model(CallForPapers, start_date: Date.today,
|
|
end_date: Date.today + 7.days,
|
|
description: 'Lorem Ipsum Dolsum')
|
|
render
|
|
expect(rendered).to include(Date.today.strftime('%Y-%m-%d'))
|
|
expect(rendered).to include(7.days.from_now.strftime('%Y-%m-%d'))
|
|
expect(rendered).to include('Lorem Ipsum Dolsum')
|
|
end
|
|
|
|
end
|