mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
18 lines
612 B
Ruby
18 lines
612 B
Ruby
require 'spec_helper'
|
|
|
|
describe "admin/callforpapers/show" do
|
|
it 'renders conference sidebar' do
|
|
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
|