jnicklas/capybara — pull request #1219 by jdelStrother (2013-12-31 11:00:48+00:00)
Title: Update HaveText to silence deprecations on RSpec3

Heya - when I updated to RSpec3, I got a bunch of deprecation warnings complaining about Capybara's HaveText matcher using `failure_message_for_should`/`failure_message_for_should_not`.

This commit uses their replacements (`failure_message`/`failure_message_when_negated`), while maintaining rspec2 compatibility with `alias_method`. WDYT?