Skip to content

Commit

Permalink
Fix tests for deleted roles
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-illi committed May 24, 2024
1 parent 30b2102 commit 5018c74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

mitglied_role.destroy

expect(Role.exists?(id: role.id)).to eq(false)
expect(Role.with_deleted.exists?(id: role.id)).to eq(false)
expect(role.person.primary_group_id).to be_nil
end

Expand Down Expand Up @@ -63,7 +63,7 @@

mitglied_role.destroy

expect(Role.exists?(id: role.id)).to eq(false)
expect(Role.with_deleted.exists?(id: role.id)).to eq(false)
expect(role.person.primary_group).to eq(other_group)
end
end

0 comments on commit 5018c74

Please sign in to comment.