Rspec testing for html entities in page content

后端 未结 4 858
我寻月下人不归
我寻月下人不归 2021-02-19 06:19

I\'m writing a request spec and would like to test for the presence of the string \"Reports » Aging Reports\". I get an error (invalid multibyte char) if I put in the character

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-19 07:11

    Sometimes the simplest solution is the right one and things just work...

    page.should have_content("Reports » Aging Reports")
    

提交回复
热议问题