2014-05-19 12:24:48 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
2016-09-14 22:42:04 -04:00
|
|
|
describe 'admin/conferences/index' do
|
2016-05-02 15:21:45 +02:00
|
|
|
let(:conference) { create(:conference, title: 'openSUSE Conference 2016') }
|
|
|
|
|
let(:second_conference) { create(:conference) }
|
|
|
|
|
|
2014-05-19 12:24:48 +05:30
|
|
|
it 'renders all conference names with links' do
|
2016-05-02 15:21:45 +02:00
|
|
|
assign(:conferences, [conference, second_conference])
|
2016-09-14 22:42:04 -04:00
|
|
|
render template: 'admin/conferences/index.html.haml'
|
2016-05-02 15:21:45 +02:00
|
|
|
expect(rendered).to include('openSUSE Conference 2016')
|
2016-05-02 17:39:06 +02:00
|
|
|
expect(rendered).to include(CGI.escapeHTML(second_conference.title))
|
2014-05-19 12:24:48 +05:30
|
|
|
end
|
|
|
|
|
end
|