expect(page).to have_content("my-text", count: 2)
will do what you want in modern versions of Capybara, not sure if that will work in 2.1 but worth trying (2.1 is over 2 years old now)
Update: In Capybara 3.19+ this can also now be written
expect(page).to have_content("my-text").twice