mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
Fix inbox view spec
This commit is contained in:
parent
32456a0f30
commit
c42e36af12
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue