BecomeClosed matchers isn't derived from Matcher - still needs aliases for RSpec 2.x compatability
This commit is contained in:
parent
3fcd93dc1c
commit
fa56f3f672
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue