ruby on rails - How to test content with assert_select -
'assert_tag' method deprecated. how refactor spec using assert_select?
assert_no_tag :tag => 'p', :content => /are sure want delete user/
you want assert selector, matching text, return empty array:
assert_select "p", text: /are sure/, count: 0
Comments
Post a Comment