View specs, added factories, fixed bugs

This commit is contained in:
Gopesh Tulsyan 2014-05-19 12:24:48 +05:30
parent 322ddd1501
commit d1e9bd06a6
33 changed files with 319 additions and 12 deletions

View file

@ -0,0 +1,17 @@
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