enable style/dotposition rubocop cop
This commit is contained in:
parent
29650beddb
commit
03fa299058
25 changed files with 143 additions and 142 deletions
|
|
@ -16,8 +16,8 @@ feature Conference do
|
|||
|
||||
click_button 'Create Cfp'
|
||||
|
||||
expect(flash).
|
||||
to eq('Creating the call for papers failed. ' +
|
||||
expect(flash)
|
||||
.to eq('Creating the call for papers failed. ' +
|
||||
"Start date can't be blank. End date can't be blank.")
|
||||
|
||||
today = Date.today - 1
|
||||
|
|
@ -29,8 +29,8 @@ feature Conference do
|
|||
click_button 'Create Cfp'
|
||||
|
||||
# Validations
|
||||
expect(flash).
|
||||
to eq('Call for papers successfully created.')
|
||||
expect(flash)
|
||||
.to eq('Call for papers successfully created.')
|
||||
expect(find('#start_date').text).to eq(today.strftime('%A, %B %-d. %Y'))
|
||||
expect(find('#end_date').text).to eq((today + 6).strftime('%A, %B %-d. %Y'))
|
||||
|
||||
|
|
@ -49,8 +49,8 @@ feature Conference do
|
|||
page.execute_script(
|
||||
"$('#registration-period-start-datepicker').val('')")
|
||||
click_button 'Update Cfp'
|
||||
expect(flash).
|
||||
to eq('Updating call for papers failed. ' +
|
||||
expect(flash)
|
||||
.to eq('Updating call for papers failed. ' +
|
||||
"Start date can't be blank.")
|
||||
|
||||
# Fill in date
|
||||
|
|
@ -63,8 +63,8 @@ feature Conference do
|
|||
click_button 'Update Cfp'
|
||||
|
||||
# Validations
|
||||
expect(flash).
|
||||
to eq('Call for papers successfully updated.')
|
||||
expect(flash)
|
||||
.to eq('Call for papers successfully updated.')
|
||||
expect(find('#start_date').text).to eq(today.strftime('%A, %B %-d. %Y'))
|
||||
expect(find('#end_date').text).to eq((today + 14).strftime('%A, %B %-d. %Y'))
|
||||
expect(Cfp.count).to eq(expected_count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue