Skip to content

Commit

Permalink
Fixes test failure of update created at rake
Browse files Browse the repository at this point in the history
  • Loading branch information
barryhalper committed Oct 29, 2024
1 parent da1b412 commit d9c38c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/tasks/updated_created_at_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

include_context "when lodging XML"

let(:data) { "1234-5678-1234-2278-1234,0000-0000-0000-0000-0000" }
let(:data) { "0000-0000-0000-0000-0000,1234-5678-1234-2278-1234" }
let(:redis) { MockRedis.new }
let(:gateway) { instance_double Gateway::QueuesGateway }

Expand All @@ -16,9 +16,10 @@
allow($stdout).to receive(:puts)
allow(gateway).to receive(:push_to_queue)
allow(Container).to receive(:queues_gateway).and_return gateway
add_assessment(assessment_id: "1234-5678-1234-2278-1234", schema_type:, type_of_assessment:)
add_assessment(assessment_id: "0000-0000-0000-0000-0000", schema_type:, type_of_assessment:)
add_assessment(assessment_id: "0000-0000-0000-0000-0009", schema_type:, type_of_assessment:)
add_assessment(assessment_id: "1234-5678-1234-2278-1234", schema_type:, type_of_assessment:)

update_sql = <<~SQL
UPDATE assessment_documents ad
SET document=jsonb_set(document, '{created_at}', 'null')
Expand Down

0 comments on commit d9c38c6

Please sign in to comment.