2014-05-19 12:24:48 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
2014-05-19 12:49:04 +05:30
|
|
|
describe 'admin/conference/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])
|
2014-05-19 12:24:48 +05:30
|
|
|
render
|
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
|