Skip to content

Commit

Permalink
More debugging on the test
Browse files Browse the repository at this point in the history
  • Loading branch information
david-yz-liu committed Sep 27, 2024
1 parent b61a086 commit 2fcd624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/db/check_repo_permissions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
expect(grouping.assignment.reload.due_date).to be > Time.current
expect(grouping.reload.start_time).to be_nil
results = Membership.connection.select_all("
SELECT roles.id
SELECT roles.id, assignment_properties.is_timed, groupings.start_time
FROM memberships
JOIN roles ON roles.id=memberships.role_id
JOIN groupings ON memberships.grouping_id=groupings.id
Expand All @@ -239,7 +239,7 @@
AND (assignment_properties.is_timed=false
OR groupings.start_time IS NOT NULL
OR (groupings.start_time IS NULL AND assessments.due_date<NOW()))
").to_h
")
expect(results).to be_empty
expect(script_success?).to be_falsy
end
Expand Down

0 comments on commit 2fcd624

Please sign in to comment.