refactoring text assertions from rspec to capybara