0

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?

GrandMasterFlush
  • 6,269
  • 19
  • 81
  • 104
dot
  • 486
  • 1
  • 8
  • 17

1 Answers1

-2

Check this doc.

Taken from this answer. Hope it help.

Community
  • 1
  • 1
Saurabh
  • 1,086
  • 1
  • 15
  • 27