osem-fcy/spec/views/admin/emails/index.html.haml_spec.rb
2014-05-22 18:19:07 +02:00

19 lines
621 B
Ruby

require 'spec_helper'
describe 'admin/emails/index' do
it 'renders email templates' do
@conference = create(:conference)
assign :conference, @conference
@settings = create(:email_settings)
assign :settings, @settings
render
expect(rendered).
to have_selector("input[type='checkbox'][value='1']", count: 4)
expect(rendered).
to have_selector("input[checked='checked'][type='checkbox'][value='1']", count: 1)
expect(rendered).to include('Lorem Ipsum Dolsum')
expect(rendered).
to include('Lorem ipsum dolor sit amet, consectetuer adipiscing elit')
end
end