I'm really happy to announce the release of the first beta version of Capybara 2.0. The reason it is called beta2 is because I screwed up and put a version with an incorrect dependency on the xpath gem on Rubygems.org and had to yank it and re-release.
THIS VERSION IS NOT API COMPATIBLE WITH CAPYBARA 1.X
Following semver.org, we are breaking API compatibility with Capybara 1.x in several important ways. Once you upgrade it is likely you will experience failures. Note that we do not offer deprecation warnings or a backwards compatible mode, you will have to adapt your test suite to the changes made in Capybara.
A quick summary of the important changes:
* `find` as well as most other actions, such as `click_link`, `click_button`, etc… raise an error when more than one element is found which matches.
* `:respect_data_method` default to false for the RackTest driver, which means it will no longer automatically pick up `:method => :post` style links in Rails.
There are a few major changes, but these two are the major ones which potentially affect a large base of Capybara users.
The plan going forward is to wait one month (august 13th) and then release a new beta release if major issue have shown up. This cycle will repeat until we are satisfied that the release is stable, at which point we will release a release candidate. If no issues are found with this release candidate, we will release a final version a week later.
In other words, if you want to help us ensure the best release possible, and make sure your application will work correctly with the next version of Capybara, please make sure to test your application against this beta release within the next month.
A huge thank you to the huge amount of contributors who made this release possible!