diff --git a/rb/spec/unit/selenium/server_spec.rb b/rb/spec/unit/selenium/server_spec.rb index 8f131ce5abebf..98ac3789dbfe0 100644 --- a/rb/spec/unit/selenium/server_spec.rb +++ b/rb/spec/unit/selenium/server_spec.rb @@ -206,7 +206,7 @@ module Selenium it 'sets options after instantiation' do allow(File).to receive(:exist?).with('selenium_server_deploy.jar').and_return(true) - server = described_class.new('selenium_server_deploy.jar') + server = described_class.new('selenium_server_deploy.jar', port: port) expect(server.port).to eq(port) expect(server.timeout).to eq(30) expect(server.background).to be false