Skip to content

Commit

Permalink
Merge pull request #6533 from samvera/updates_apply_change_set_spec
Browse files Browse the repository at this point in the history
Addresses Postgres' further date/time parsing (`spec/hyrax/transactions/apply_change_set_spec.rb`).
  • Loading branch information
dlpierce authored Dec 12, 2023
2 parents ffe44d2 + 7c34b75 commit df8ba25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/hyrax/transactions/apply_change_set_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
end

it 'sets modified and uploaded date' do
expected_time = Hyrax.config.disable_wings ? DateTime.parse(xmas) : xmas

expect(tx.call(change_set).value!)
.to have_attributes(date_modified: xmas,
date_uploaded: xmas)
.to have_attributes(date_modified: expected_time,
date_uploaded: expected_time)
end

describe 'events' do
Expand Down

0 comments on commit df8ba25

Please sign in to comment.