We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b7c73 commit f1bdfc6Copy full SHA for f1bdfc6
rb/spec/unit/selenium/webdriver/phantomjs/service_spec.rb
@@ -76,8 +76,9 @@ module PhantomJS
76
it 'deprecates `args`' do
77
args = ["--foo", "--bar"]
78
79
- expect(WebDriver.logger).to receive(:deprecate).with(':args', "driver_opts: {args: #{args}}")
+ allow(WebDriver.logger).to receive(:deprecate)
80
@driver = Driver.new(http_client: http, args: args)
81
+ expect(WebDriver.logger).to have_received(:deprecate).with(':args', "driver_opts: {args: #{args}}")
82
expect(@driver.instance_variable_get("@service").instance_variable_get("@extra_args")).to eq args
83
end
84
0 commit comments