I need to test often about title tag for SEO reason. The title tag is very important for Google and search motors for obvious reasons: is the title of the page and the first thing that user see when he have to choose a result from the search. How to test with minitest inside Rails?

I use the meta-tag gem and sometimes I do errors so I choose to put this part under version control for a project like significatocanzone.it where SEO is a very important topic.

Rails guides is not very preoccupied with testing views issue. There are only one chapter and very small about it. But I’m lucky because the first example is exactly about my concern.

The solutions is use assert_select in this way:
assert-select-rails.png 157 KB