Skip to content

Commit f1bdfc6

Browse files
committed
[rb] update service_args test to allow multiple deprecate warnings
1 parent c9b7c73 commit f1bdfc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rb/spec/unit/selenium/webdriver/phantomjs/service_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ module PhantomJS
7676
it 'deprecates `args`' do
7777
args = ["--foo", "--bar"]
7878

79-
expect(WebDriver.logger).to receive(:deprecate).with(':args', "driver_opts: {args: #{args}}")
79+
allow(WebDriver.logger).to receive(:deprecate)
8080
@driver = Driver.new(http_client: http, args: args)
81+
expect(WebDriver.logger).to have_received(:deprecate).with(':args', "driver_opts: {args: #{args}}")
8182
expect(@driver.instance_variable_get("@service").instance_variable_get("@extra_args")).to eq args
8283
end
8384
end

0 commit comments

Comments
 (0)