osem-fcy/spec/views/admin/conference/index.html.haml_spec.rb

14 lines
451 B
Ruby
Raw Normal View History

require 'spec_helper'
2014-05-19 12:49:04 +05:30
describe 'admin/conference/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
expect(rendered).to include('openSUSE Conference 2016')
2016-05-02 17:39:06 +02:00
expect(rendered).to include(CGI.escapeHTML(second_conference.title))
end
end