Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yoomlam committed Jun 21, 2021
1 parent 110ce0a commit 3d5612b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/fixes/investigate_duplicate_judge_assign_task_spec.rb
Expand Up @@ -10,6 +10,7 @@
feature "duplicate JudgeAssignTask investigation" do
before do
User.authenticate!(css_id: "PETERSBVAM")
Functions.grant!("System Admin", users: ["PETERSBVAM"]) # enable access to `export` endpoint
end

# Ticket: https://github.com/department-of-veterans-affairs/dsva-vacols/issues/174
Expand All @@ -21,7 +22,6 @@
appeal = sji.imported_records[Appeal.table_name].first

judge = User.find_by_css_id("PETERSBVAM")
Functions.grant!("System Admin", users: [judge.css_id]) # enable access to `export` endpoint
create(:staff, :judge_role, user: judge)

appeal.reload
Expand All @@ -36,6 +36,7 @@

# Delete tasks created on or after 2021-06-13 so we can recreate the problem
appeal.tasks.where("created_at >= ?", "2021-06-13").delete_all
# Set task status so that user as task actions
Task.find(2_001_437_274).assigned!
Task.find(2_001_437_273).on_hold!

Expand Down

0 comments on commit 3d5612b

Please sign in to comment.