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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -