From 49291a50ff513f02dba4c172939e1f035704f359 Mon Sep 17 00:00:00 2001 From: Daniel Pierce Date: Wed, 23 Mar 2022 12:06:47 -0400 Subject: [PATCH] Fix flaky test caused by querying solr for admin set with a nil id --- spec/presenters/hyrax/admin_set_presenter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/presenters/hyrax/admin_set_presenter_spec.rb b/spec/presenters/hyrax/admin_set_presenter_spec.rb index 8e5a6c83e3..2c24a9b555 100644 --- a/spec/presenters/hyrax/admin_set_presenter_spec.rb +++ b/spec/presenters/hyrax/admin_set_presenter_spec.rb @@ -15,7 +15,7 @@ describe "total_items" do subject { presenter.total_items } - let(:admin_set) { build(:admin_set) } + let(:admin_set) { create(:admin_set) } context "empty admin set" do it { is_expected.to eq 0 }