Skip to content

Commit

Permalink
test: update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 2, 2024
1 parent f3e0e25 commit 86fe6d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/views/signs/_card.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/views/signs/table/_row.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 86fe6d7

Please sign in to comment.