mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
20 lines
765 B
Ruby
20 lines
765 B
Ruby
require 'spec_helper'
|
|
describe 'admin/callforpapers/show' do
|
|
it 'renders conference sidebar' do
|
|
assign :cfp, CallForPapers.new
|
|
expect(sidebar).to be true
|
|
end
|
|
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,
|
|
hard_deadline: Date.today + 6.days,
|
|
description: 'Lorem Ipsum Dolsum')
|
|
render
|
|
expect(rendered).to include("#{Date.today}")
|
|
expect(rendered).to include("#{Date.today + 7.days}")
|
|
expect(rendered).to include('Lorem Ipsum Dolsum')
|
|
end
|
|
|
|
end
|