wapcaplet/kelp — pull request #4 by eostrom (2012-12-06 04:42:15+00:00)
Title: Capybara 2

This one is trickier. The first two commits (disabled buttons and an unrelated doc fix I made along the way) are easy. The third, which lets us raise an error if the locator is ambiguous, is more work.

Part of it is the field tests. The example form view contained two scopes with "First name" and "Last name" fields, and a lot of tests that referred to them suddenly had errors. Rather than rewrite all those tests, I removed the second scope. Then I created a second form view, which *does* have both scopes, just for the tests that actually *use* scopes. I also wrote some new tests for the `AmbiguousField` error.

The rest of it is detailed in the commit message; I had to flag an ambiguous case that Capybara doesn't recognize.