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

18 lines
584 B
Ruby
Raw Normal View History

require 'spec_helper'
describe "admin/social_events/index" do
it 'renders conference sidebar' do
expect(sidebar).to be true
end
it 'renders social events' do
@social_event = create(:social_event)
assign :conference, @social_event.conference
render
expect(rendered).to include('Example Social Event')
expect(rendered).to include('Lorem Ipsum Dolsum')
expect(rendered).to include("#{Date.today.strftime('%Y')}")
expect(rendered).to include("#{Date.today.strftime('%B')}")
expect(rendered).to include("#{Date.today.strftime('%d')}")
end
end