diff --git a/spec/views/signs/_card.html.erb_spec.rb b/spec/views/signs/_card.html.erb_spec.rb index 743b0dd2..56af16f4 100644 --- a/spec/views/signs/_card.html.erb_spec.rb +++ b/spec/views/signs/_card.html.erb_spec.rb @@ -85,7 +85,7 @@ allow(view).to receive(:user_signed_in?).and_return(true) allow(view).to receive(:present).with(sign).and_return(presenter) expect(presenter).to receive(:comments_count).and_return(10) - expect(rendered).to have_selector(".sign-control--comments", text: "Comments\n\n\n\n 10") + expect(rendered).to have_selector(".sign-control--comments", text: "Comments\n\n\n 10") end it "shows an indicator on the comment icon when the user has unread comments" do @@ -97,7 +97,7 @@ expect(rendered).to have_selector( ".sign-control--comments--unread", - text: "Comments\n\n\n\n 1") + text: "Comments\n\n\n 1") end it "does not show the comment count when the user is not signed in" do diff --git a/spec/views/signs/table/_row.html.erb_spec.rb b/spec/views/signs/table/_row.html.erb_spec.rb index 77c01241..f962cfbe 100644 --- a/spec/views/signs/table/_row.html.erb_spec.rb +++ b/spec/views/signs/table/_row.html.erb_spec.rb @@ -79,7 +79,7 @@ allow(view).to receive(:user_signed_in?).and_return(true) allow(view).to receive(:present).with(sign).and_return(presenter) expect(presenter).to receive(:comments_count).and_return(10) - expect(rendered).to have_selector(".sign-control--comments", text: "Comments\n\n\n\n 10") + expect(rendered).to have_selector(".sign-control--comments", text: "Comments\n\n\n 10") end it "shows an indicator on the comment icon when the user has unread comments" do @@ -91,7 +91,7 @@ expect(rendered).to have_selector( ".sign-control--comments--unread", - text: "Comments\n\n\n\n 1") + text: "Comments\n\n\n 1") end it "does not show the comment count when the user is not signed in" do