osem-fcy/spec/views/layouts/application.haml_spec.rb

12 lines
319 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'layouts/application.haml' do
let(:conference) { create(:conference) }
it 'assigns a class to the body identifying the current conference' do
assign(:conference, conference)
render
expect(rendered).to have_selector("body.conference-#{conference.short_title}")
end
end