diff --git a/spec/components/search_result_caption_component_spec.rb b/spec/components/search_result_caption_component_spec.rb
index eda71a255..b6079d289 100644
--- a/spec/components/search_result_caption_component_spec.rb
+++ b/spec/components/search_result_caption_component_spec.rb
@@ -11,14 +11,15 @@ RSpec.describe SearchResultCaptionComponent, type: :component do
it "all of the nav tabs specified in the items hash are passed to it" do
result = render_inline(described_class.new(searched:, count:, item_label:, total_count:, item:, path:))
- expect(result.to_html).to eq(" \n #{count} #{item_label} found matching '#{searched}' of #{total_count} total #{item}. Clear search\n\n")
+ expect(result.to_html).to eq(" \n #{count} #{item_label} found matching ‘#{searched}’ of #{total_count} total #{item}. Clear search\n\n")
end
context "when no search results are found" do
- let(:searched) { nil }
+ let(:searched) { nil }
it "all of the nav tabs specified in the items hash are passed to it" do
result = render_inline(described_class.new(searched:, count:, item_label:, total_count:, item:, path:))
- expect(result.to_html).to eq(" \n #{count} #{item_label} found matching '#{searched}' of #{total_count} total #{item}. Clear search\n\n")
+
+ expect(result.to_html).to eq(" \n #{count} total #{item}.\n\n")
end
end
end