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

16 lines
511 B
Ruby
Raw Normal View History

require 'spec_helper'
2014-05-19 12:49:04 +05:30
describe 'admin/social_events/index' do
2014-05-22 18:19:07 +02:00
2014-08-12 11:51:59 +03:00
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')}")
2014-06-02 13:06:41 +02:00
expect(rendered).to include("#{Date.today.strftime('%-d')}")
end
end