Does anybody know how to find if a page has a text more than once?
I know I can use
expect(page).to have_content("my-text")
to check if text appears once. However, I need something like
expect(page).to have_content("my-text").twice
(which doesn't work).
I'm using capybara v2.1.0.