Skip to content

Commit

Permalink
Merge 7180a2e into 6c6b711
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Jan 13, 2020
2 parents 6c6b711 + 7180a2e commit 5014b1c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion spec/features/encumbrance_reports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

it 'renders the hidden field for date_request' do
attribute = page.find('#encumbrance_report_date_request', visible: false).value
expect(attribute).to eq I18n.l(Time.now.getlocal, format: :oracle)
time = Time.parse(attribute)
now = Time.parse(I18n.l(Time.now.getlocal, format: :oracle))
expect(time.strftime('%F %R')).to eq now.strftime('%F %R')
end
end
4 changes: 3 additions & 1 deletion spec/features/endowed_funds_reports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

it 'renders the hidden field for date_request' do
attribute = page.find('#endowed_funds_report_date_request', visible: false).value
expect(attribute).to eq I18n.l(Time.now.getlocal, format: :oracle)
time = Time.parse(attribute)
now = Time.parse(I18n.l(Time.now.getlocal, format: :oracle))
expect(time.strftime('%F %R')).to eq now.strftime('%F %R')
end
end
4 changes: 3 additions & 1 deletion spec/features/expenditure_reports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

it 'renders the hidden field for date_request' do
attribute = page.find('#expenditure_report_date_request', visible: false).value
expect(attribute).to eq I18n.l(Time.now.getlocal, format: :oracle)
time = Time.parse(attribute)
now = Time.parse(I18n.l(Time.now.getlocal, format: :oracle))
expect(time.strftime('%F %R')).to eq now.strftime('%F %R')
end
end
4 changes: 3 additions & 1 deletion spec/features/expenditures_with_circ_stats_reports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

it 'renders the hidden field for date_request' do
attribute = page.find('#expenditures_with_circ_stats_report_date_request', visible: false).value
expect(attribute).to eq I18n.l(Time.now.getlocal, format: :oracle)
time = Time.parse(attribute)
now = Time.parse(I18n.l(Time.now.getlocal, format: :oracle))
expect(time.strftime('%F %R')).to eq now.strftime('%F %R')
end
end

0 comments on commit 5014b1c

Please sign in to comment.