To test that a link exists in my view I do the following:
assert_select 'a[href=?]', '/post/new', :text => 'New post'
Now I'm searching for a way to test where a link not exists in the view, how can I do that?
To test that a link exists in my view I do the following:
assert_select 'a[href=?]', '/post/new', :text => 'New post'
Now I'm searching for a way to test where a link not exists in the view, how can I do that?