Skip to content

Commit

Permalink
prevent set value from bleeding into other specs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Nov 26, 2024
1 parent 36c6aab commit c0b2a00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
uses: scientist-softserv/actions/.github/workflows/[email protected]
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()
Expand Down
6 changes: 6 additions & 0 deletions spec/lib/bulkrax/bulkrax_decorator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' }

Expand Down

0 comments on commit c0b2a00

Please sign in to comment.