Skip to content

Commit

Permalink
Fix test leaving state after being run
Browse files Browse the repository at this point in the history
  • Loading branch information
cbliard authored and oliverguenther committed Nov 26, 2024
1 parent 04bd584 commit 743f62d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/bim/spec/seeders/root_seeder_bim_edition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def group_name(reference)
root_seeder.seed_data!
end
end
ensure
reset(:seed_admin_user_enabled)
RequestStore.clear! # resets `User.current` cached result
end

it "creates the system user" do
Expand Down
3 changes: 3 additions & 0 deletions spec/seeders/root_seeder_standard_edition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@
root_seeder.seed_data!
end
end
ensure
reset(:seed_admin_user_enabled)
RequestStore.clear! # resets `User.current` cached result
end

it "creates the system user" do
Expand Down

0 comments on commit 743f62d

Please sign in to comment.