View specs, added factories, fixed bugs
This commit is contained in:
parent
322ddd1501
commit
d1e9bd06a6
33 changed files with 319 additions and 12 deletions
17
spec/views/admin/social_events/index.html.haml_spec.rb
Normal file
17
spec/views/admin/social_events/index.html.haml_spec.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue