rubocop files update and auto correction
This commit is contained in:
parent
1a62dc930e
commit
1f82fbbdc6
88 changed files with 519 additions and 452 deletions
|
|
@ -1,14 +1,13 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/volunteers/index' do
|
||||
|
||||
it 'renders volunteers days as vdays' do
|
||||
@vday = create(:vday)
|
||||
@vday.conference.update_attributes(use_volunteers: true, use_vdays: true)
|
||||
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')}")
|
||||
|
|
@ -18,7 +17,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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue