Skip to content

Commit

Permalink
Archive petition job
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkevin committed Jan 30, 2024
1 parent 3c31fdf commit 33ecf21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/archive_petition_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def perform(petition)
o.transcript_url = debate_outcome.transcript_url
o.video_url = debate_outcome.video_url
o.debate_pack_url = debate_outcome.debate_pack_url
o.public_engagement_url = debate_outcome.public_engagement_url
o.debate_summary_url = debate_outcome.debate_summary_url
o.overview = debate_outcome.overview
o.created_at = debate_outcome.created_at
o.updated_at = debate_outcome.updated_at
Expand Down
2 changes: 2 additions & 0 deletions spec/jobs/archive_petition_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@
expect(archived_debate_outcome.transcript_url).to eq(debate_outcome.transcript_url)
expect(archived_debate_outcome.video_url).to eq(debate_outcome.video_url)
expect(archived_debate_outcome.debate_pack_url).to eq(debate_outcome.debate_pack_url)
expect(archived_debate_outcome.public_engagement_url).to eq(debate_outcome.public_engagement_url)
expect(archived_debate_outcome.debate_summary_url).to eq(debate_outcome.debate_summary_url)
expect(petition.debate_outcome.public_engagement_url).to eq debate_outcome[:public_engagement_url]
expect(petition.debate_outcome.debate_summary_url).to eq debate_outcome[:debate_summary_url]
expect(archived_debate_outcome.created_at).to be_usec_precise_with(debate_outcome.created_at)
Expand Down

0 comments on commit 33ecf21

Please sign in to comment.