From f127690c97d32d57d5cd70d32ecb86c69d01fea6 Mon Sep 17 00:00:00 2001 From: Daniel Pierce Date: Tue, 10 Dec 2024 10:48:46 -0500 Subject: [PATCH] :clean_repo for flaky specs --- spec/abilities/ability_spec.rb | 2 +- spec/features/default_workflow_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/abilities/ability_spec.rb b/spec/abilities/ability_spec.rb index ba351f67f3..8632453989 100644 --- a/spec/abilities/ability_spec.rb +++ b/spec/abilities/ability_spec.rb @@ -46,7 +46,7 @@ end end - describe "can?(:review, :submissions)" do + describe "can?(:review, :submissions)", :clean_repo do subject { ability.can?(:review, :submissions) } let(:role) { Sipity::Role.create(name: role_name) } diff --git a/spec/features/default_workflow_spec.rb b/spec/features/default_workflow_spec.rb index 7d3a1463d2..c96e4dc2e2 100644 --- a/spec/features/default_workflow_spec.rb +++ b/spec/features/default_workflow_spec.rb @@ -8,7 +8,7 @@ state: Hyrax::ResourceStatus::INACTIVE) end - describe 'initializing the workflow' do + describe 'initializing the workflow', :clean_repo do let(:attributes) { :LEGACY_UNUSED_ARGUMENT_WITH_NO_KNOWN_USE_CASE_SHOULD_NEVER_BE_REQUIRED } let(:workflow_factory) { Hyrax::Workflow::WorkflowFactory }