mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
13 lines
498 B
Ruby
13 lines
498 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'admin/conferences/index' do
|
|
let(:conference) { create(:conference, title: 'openSUSE Conference 2016') }
|
|
let(:second_conference) { create(:conference) }
|
|
|
|
it 'renders all conference names with links' do
|
|
assign(:conferences, [conference, second_conference])
|
|
render template: 'admin/conferences/index.html.haml'
|
|
expect(rendered).to include('openSUSE Conference 2016')
|
|
expect(rendered).to include(CGI.escapeHTML(second_conference.title))
|
|
end
|
|
end
|