diff --git a/.github/workflows/build-test-lint.yaml b/.github/workflows/build-test-lint.yaml index ce0c2ec5c..71e809f57 100644 --- a/.github/workflows/build-test-lint.yaml +++ b/.github/workflows/build-test-lint.yaml @@ -48,7 +48,7 @@ jobs: uses: scientist-softserv/actions/.github/workflows/test.yaml@v0.0.23 with: confdir: "/app/samvera/hyrax-webapp/solr/conf" - rspec_cmd: "gem install semaphore_test_boosters && bundle && rspec_booster --job $CI_NODE_INDEX/$CI_NODE_TOTAL" + rspec_cmd: "gem install semaphore_test_boosters && bundle && TB_RSPEC_OPTIONS='--seed=14318' rspec_booster --job $CI_NODE_INDEX/$CI_NODE_TOTAL" reports: if: always() diff --git a/spec/lib/bulkrax/bulkrax_decorator_spec.rb b/spec/lib/bulkrax/bulkrax_decorator_spec.rb index 3aea219c4..2922894be 100644 --- a/spec/lib/bulkrax/bulkrax_decorator_spec.rb +++ b/spec/lib/bulkrax/bulkrax_decorator_spec.rb @@ -27,6 +27,12 @@ allow(Site.account).to receive(:bulkrax_field_mappings).and_return nil end + around do |example| + initialized_defaults = Hyku.default_bulkrax_field_mappings + example.run + Hyku.default_bulkrax_field_mappings = initialized_defaults + end + it "returns Hyku's default field mappings" do Hyku.default_bulkrax_field_mappings = { this: 'is fine' }