mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
remove deprecated default_wait_time
This commit is contained in:
parent
eda91c13e5
commit
cfc6604b69
2 changed files with 0 additions and 21 deletions
|
@ -80,18 +80,6 @@ module Capybara
|
|||
@javascript_driver || :selenium
|
||||
end
|
||||
|
||||
# @deprecated Use default_max_wait_time instead
|
||||
def default_wait_time
|
||||
deprecate('default_wait_time', 'default_max_wait_time', true)
|
||||
default_max_wait_time
|
||||
end
|
||||
|
||||
# @deprecated Use default_max_wait_time= instead
|
||||
def default_wait_time=(t)
|
||||
deprecate('default_wait_time=', 'default_max_wait_time=')
|
||||
self.default_max_wait_time = t
|
||||
end
|
||||
|
||||
def deprecate(method, alternate_method, once=false)
|
||||
@deprecation_notified ||= {}
|
||||
warn "DEPRECATED: ##{method} is deprecated, please use ##{alternate_method} instead" unless once and @deprecation_notified[method]
|
||||
|
|
|
@ -12,15 +12,6 @@ RSpec.describe Capybara do
|
|||
Capybara.default_max_wait_time = 5
|
||||
expect(Capybara.default_max_wait_time).to eq(5)
|
||||
end
|
||||
|
||||
it "should be accesible as the deprecated default_wait_time" do
|
||||
expect(Capybara.send(:config)).to receive(:warn).ordered.with('DEPRECATED: #default_wait_time= is deprecated, please use #default_max_wait_time= instead')
|
||||
expect(Capybara.send(:config)).to receive(:warn).ordered.with('DEPRECATED: #default_wait_time is deprecated, please use #default_max_wait_time instead')
|
||||
@previous_default_time = Capybara.default_max_wait_time
|
||||
Capybara.default_wait_time = 5
|
||||
expect(Capybara.default_wait_time).to eq(5)
|
||||
expect(Capybara.default_max_wait_time).to eq(5)
|
||||
end
|
||||
end
|
||||
|
||||
describe '.register_driver' do
|
||||
|
|
Loading…
Reference in a new issue