BecomeClosed matchers isn't derived from Matcher - still needs aliases for RSpec 2.x compatability

This commit is contained in:
Thomas Walpole 2016-11-21 15:11:49 -08:00
parent 3fcd93dc1c
commit fa56f3f672
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ module Capybara
def failure_message_when_negated
"expected #{@window.inspect} not to become closed after #{@wait_time} seconds"
end
# RSpec 2 compatibility:
alias_method :failure_message_for_should, :failure_message
alias_method :failure_message_for_should_not, :failure_message_when_negated
end
def have_selector(*args, &optional_filter_block)