@@ -76,20 +76,16 @@ def stub_binary(binary)
7676 describe 'self.driver_path' do
7777 it 'errors if not an option' do
7878 expect {
79- expect {
80- described_class . driver_path ( Remote ::Capabilities . new ( browser_name : 'chrome' ) )
81- } . to raise_error ( ArgumentError , /SeleniumManager requires a WebDriver::Options instance/ )
82- } . to have_warning ( :selenium_manager )
79+ described_class . driver_path ( Remote ::Capabilities . new ( browser_name : 'chrome' ) )
80+ } . to raise_error ( ArgumentError , /SeleniumManager requires a WebDriver::Options instance/ )
8381 end
8482
8583 it 'determines browser name by default' do
8684 allow ( described_class ) . to receive ( :run )
8785 allow ( described_class ) . to receive ( :binary ) . and_return ( 'selenium-manager' )
8886 allow ( Platform ) . to receive ( :assert_executable )
8987
90- expect {
91- described_class . driver_path ( Options . chrome )
92- } . to have_warning ( :selenium_manager )
88+ described_class . driver_path ( Options . chrome )
9389
9490 expect ( described_class ) . to have_received ( :run )
9591 . with ( 'selenium-manager' , '--browser' , 'chrome' , '--output' , 'json' )
@@ -101,9 +97,7 @@ def stub_binary(binary)
10197 allow ( Platform ) . to receive ( :assert_executable )
10298 options = Options . chrome ( browser_version : 1 )
10399
104- expect {
105- described_class . driver_path ( options )
106- } . to have_warning ( :selenium_manager )
100+ described_class . driver_path ( options )
107101
108102 expect ( described_class ) . to have_received ( :run )
109103 . with ( 'selenium-manager' ,
@@ -119,9 +113,7 @@ def stub_binary(binary)
119113 allow ( Platform ) . to receive ( :assert_executable )
120114 options = Options . chrome ( proxy : proxy )
121115
122- expect {
123- described_class . driver_path ( options )
124- } . to have_warning ( :selenium_manager )
116+ described_class . driver_path ( options )
125117
126118 expect ( described_class ) . to have_received ( :run )
127119 . with ( 'selenium-manager' ,
@@ -136,9 +128,7 @@ def stub_binary(binary)
136128 allow ( Platform ) . to receive ( :assert_executable )
137129 options = Options . chrome ( binary : '/path/to/browser' )
138130
139- expect {
140- described_class . driver_path ( options )
141- } . to have_warning ( :selenium_manager )
131+ described_class . driver_path ( options )
142132
143133 expect ( described_class ) . to have_received ( :run )
144134 . with ( 'selenium-manager' , '--browser' , 'chrome' , '--output' , 'json' , '--browser-path' , '/path/to/browser' )
@@ -150,9 +140,7 @@ def stub_binary(binary)
150140 allow ( Platform ) . to receive ( :assert_executable )
151141 options = Options . chrome ( binary : '/path to/the/browser' )
152142
153- expect {
154- described_class . driver_path ( options )
155- } . to have_warning ( :selenium_manager )
143+ described_class . driver_path ( options )
156144
157145 expect ( described_class ) . to have_received ( :run )
158146 . with ( 'selenium-manager' , '--browser' , 'chrome' , '--output' , 'json' ,
0 commit comments