Fix inbox view spec
This commit is contained in:
parent
32456a0f30
commit
c42e36af12
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue