Fix inbox view spec

This commit is contained in:
Andreas Nedbal 2023-12-10 22:09:21 +01:00 committed by Andreas Nedbal
parent 32456a0f30
commit c42e36af12
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ describe "inbox/show.html.haml", type: :view do
it "displays an 'inbox is empty' message" do
html = Nokogiri::HTML.parse(rendered)
selector = "p.empty"
selector = "div.card.empty"
expect(rendered).to have_css(selector)
expect(html.css(selector).text.strip).to eq "Nothing to see here."
expect(html.css(selector).text.strip).to include "Your inbox is empty!"
end
end