It is very difficult for me to figure out how to make sure that the meta-header content attribute is not empty using either assert_select or assert_tag. I canβt figure out how to make it work together.
To give you a better idea, here is an example of how I want the test to work:
This should go through:
[meta name = "title" content = "Hello" /]
This should fail:
[meta name = "title" content = "" /]
[note: the absence of a tag should not work at all]
source share