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

14 lines
435 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')
expect(rendered).to include(second_conference.title)
end
end