diff --git a/spec/components/search_result_caption_component_spec.rb b/spec/components/search_result_caption_component_spec.rb
index 3e6baaada..fa136d91b 100644
--- a/spec/components/search_result_caption_component_spec.rb
+++ b/spec/components/search_result_caption_component_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do
context "when search and filter results are found" do
it "renders table caption including the search results and total" do
- expect(result.to_html).to eq("\n 2 users matching search and filters
\n\n")
+ expect(result.to_html).to eq("\n 2 users matching search and filters\n\n")
end
end
@@ -19,7 +19,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do
let(:filters_count) { nil }
it "renders table caption including the search results and total" do
- expect(result.to_html).to eq("\n 2 users matching search
\n\n")
+ expect(result.to_html).to eq("\n 2 users matching search\n\n")
end
end
@@ -27,7 +27,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do
let(:searched) { nil }
it "renders table caption including the search results and total" do
- expect(result.to_html).to eq("\n 2 users matching filters
\n\n")
+ expect(result.to_html).to eq("\n 2 users matching filters\n\n")
end
end
@@ -44,7 +44,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do
let(:count) { 0 }
it "renders table caption with total count only" do
- expect(result.to_html).to eq("\n 0 users matching search and filters
\n\n")
+ expect(result.to_html).to eq("\n 0 users matching search and filters\n\n")
end
end
@@ -52,7 +52,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do
let(:count) { 1 }
it "renders table caption with total count only" do
- expect(result.to_html).to eq("\n 1 user matching search and filters
\n\n")
+ expect(result.to_html).to eq("\n 1 user matching search and filters\n\n")
end
end
end