diff --git a/spec/views/notifications/index.html.haml_spec.rb b/spec/views/notifications/index.html.haml_spec.rb index d02e43038..c4ec0280c 100644 --- a/spec/views/notifications/index.html.haml_spec.rb +++ b/spec/views/notifications/index.html.haml_spec.rb @@ -15,9 +15,8 @@ describe "notifications/index" do end it "renders a list of notifications" do - assert_select "table" - assert_select "tr>td", text: @notification.sender.to_s, count: 2 - assert_select "tr>td", text: @notification.subject, count: 2 + has_content @notification.sender.to_s, count: 2 + has_content @notification.subject, count: 2 end it "links to sender's profile" do