Setting the DISPLAY variable is not longer done through env, because it is not part of the build matrix. (If we kept it, we would have to repeat it in the exclude list.)
Cucumber 0.10.5 was only released in June 2011, but I cannot get the Rake tasks to work with older Cucumbers. Luckily this only affects the development dependencies, so Capybara may in actuality still work with older versions of Cucumber.
I was going for :features, but :cucumber is the default task name suggested by the cucumber gem.
RbConfig works on Ruby >=1.8.5 (i.e. everywhere), and Config is deprecated as of Ruby 1.9.3.
Per f4360f6, #body should return the unmodified source, just like #source. However, in Selenium it doesn't, which is why this test was passing, even though it is incorrect. I have corrected the spec for #body to match #source (as it is just an alias), and changed the original spec for #body to be the spec for #html.
WebKit will append a '?' to the URL when submitting a form via GET, even if there is no actual form data. (Firefox does not.) This causes a couple of tests to fail for the Poltergeist driver, because the tests do not expect there to be a '?'. Presumably it would also affect capybara-webkit. I am not sure which behaviour is 'correct' but it would seem a bad idea to mess with the URL that the browser is actually providing, so changing to test like this just allows the results to be consistent.
…ck_test and selenium
This was introduced in 8c6ff16.
Thanks to Adam Cigánek for his helpful input and the original patch!
Previously Rack::Test's #text method might have returned " some text ", whereas now it returns "some text", just like Selenium.