diff --git a/spec/hyrax/transactions/apply_change_set_spec.rb b/spec/hyrax/transactions/apply_change_set_spec.rb index 1e451e8305..1bdccf4f91 100644 --- a/spec/hyrax/transactions/apply_change_set_spec.rb +++ b/spec/hyrax/transactions/apply_change_set_spec.rb @@ -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