spree/spree — pull request #4043 by jhawthorn (2013-12-03 21:09:54+00:00)
Title: improved capybara select2 helpers

Existing `select2` used `sleep(1)` to wait for the select2 dropdown to appear and then executed some javascript to select the desired option. This replaces that with a standard capybara `page.find(...).click`.

As well with avoiding the `sleep(1)`, this will raise an exception if the desired option is missing.