I am pretty newbie in Ruby and we are using Capybara + Rspec + Poltergeist as the driver.
What I want to do is to expect some text on the webpage I am testing, so I have this simple code:
But sometimes it fails because "text" can be found in capital letters or lowercase or uppercase ... So, how can I expect the text in a insensitive case matcher? Or, can I use some function to maybe "downcase" all?