jnicklas/capybara — pull request #682 by tedkimble (2012-04-01 22:14:15+00:00)
Title: Add MultipleMatchesFound error

My first pull request, go easy on me :)

This is in reference to issue #681. Basically if you had something like `select '4', from 'some_select_tag'` and both `
4
` and `
14
`, the `#find` method of `#select` would match both and raise a `ElementNotFound` error and a message saying that no element was found. This is confusing and technically incorrect. This commit adds a `MultipleMatchesFound` error and provides a more appropriate error message.