houndci fixes

This commit is contained in:
Gopesh Tulsyan 2014-05-19 12:49:04 +05:30
parent d1e9bd06a6
commit 7a19fefd53
24 changed files with 39 additions and 33 deletions

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe "admin/volunteers/index" do
describe 'admin/volunteers/index' do
it 'renders conference sidebar' do
expect(sidebar).to be true
end
@ -11,7 +11,7 @@ describe "admin/volunteers/index" do
assign :conference, @vday.conference
render
expect(rendered).to have_selector(
"input[checked='checked'][type='checkbox'][value='1']", count: 2)
"input[checked='checked'][type='checkbox'][value='1']", count: 2)
expect(rendered).to include("#{Date.today.strftime('%Y')}")
expect(rendered).to include("#{Date.today.strftime('%B')}")
expect(rendered).to include("#{Date.today.strftime('%d')}")
@ -21,7 +21,7 @@ describe "admin/volunteers/index" do
it 'renders volunteers positions as vpositions' do
@vposition = create(:vposition)
@vposition.conference.update_attributes(
use_vpositions: true, use_volunteers: true, use_vdays: true)
use_vpositions: true, use_volunteers: true, use_vdays: true)
assign :conference, @vposition.conference
render
expect(rendered).to include("#{Date.today}")