@@ -54,20 +54,7 @@ module WebDriver
5454 expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
5555 end
5656
57- it 'uses path from PATH' do
58- allow ( SeleniumManager ) . to receive ( :driver_path )
59- allow ( Platform ) . to receive ( :assert_file )
60- allow ( Platform ) . to receive ( :assert_executable )
61- allow ( Platform ) . to receive ( :find_binary ) . and_return ( 'path' )
62-
63- described_class . path ( options , service )
64-
65- expect ( SeleniumManager ) . not_to have_received ( :driver_path )
66- expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
67- end
68-
6957 it 'gives original error if not found by Selenium Manager' do
70- allow ( Platform ) . to receive ( :find_binary )
7158 allow ( SeleniumManager ) . to receive ( :driver_path ) . and_raise ( Error ::WebDriverError )
7259
7360 expect {
@@ -108,20 +95,7 @@ module WebDriver
10895 expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
10996 end
11097
111- it 'uses path from PATH' do
112- allow ( SeleniumManager ) . to receive ( :driver_path )
113- allow ( Platform ) . to receive ( :assert_file )
114- allow ( Platform ) . to receive ( :assert_executable )
115- allow ( Platform ) . to receive ( :find_binary ) . and_return ( 'path' )
116-
117- described_class . path ( options , service )
118-
119- expect ( SeleniumManager ) . not_to have_received ( :driver_path )
120- expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
121- end
122-
12398 it 'gives original error if not found by Selenium Manager' do
124- allow ( Platform ) . to receive ( :find_binary )
12599 allow ( SeleniumManager ) . to receive ( :driver_path ) . and_raise ( Error ::WebDriverError )
126100
127101 expect {
@@ -162,20 +136,7 @@ module WebDriver
162136 expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
163137 end
164138
165- it 'uses path from PATH' do
166- allow ( SeleniumManager ) . to receive ( :driver_path )
167- allow ( Platform ) . to receive ( :assert_file )
168- allow ( Platform ) . to receive ( :assert_executable )
169- allow ( Platform ) . to receive ( :find_binary ) . and_return ( 'path' )
170-
171- described_class . path ( options , service )
172-
173- expect ( SeleniumManager ) . not_to have_received ( :driver_path )
174- expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
175- end
176-
177139 it 'gives original error if not found by Selenium Manager' do
178- allow ( Platform ) . to receive ( :find_binary )
179140 allow ( SeleniumManager ) . to receive ( :driver_path ) . and_raise ( Error ::WebDriverError )
180141
181142 expect {
@@ -216,20 +177,7 @@ module WebDriver
216177 expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
217178 end
218179
219- it 'uses path from PATH' do
220- allow ( SeleniumManager ) . to receive ( :driver_path )
221- allow ( Platform ) . to receive ( :assert_file )
222- allow ( Platform ) . to receive ( :assert_executable )
223- allow ( Platform ) . to receive ( :find_binary ) . and_return ( 'path' )
224-
225- described_class . path ( options , service )
226-
227- expect ( SeleniumManager ) . not_to have_received ( :driver_path )
228- expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
229- end
230-
231180 it 'gives original error if not found by Selenium Manager' do
232- allow ( Platform ) . to receive ( :find_binary )
233181 allow ( SeleniumManager ) . to receive ( :driver_path ) . and_raise ( Error ::WebDriverError )
234182
235183 expect {
@@ -270,20 +218,7 @@ module WebDriver
270218 expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
271219 end
272220
273- it 'uses path from PATH' do
274- allow ( SeleniumManager ) . to receive ( :driver_path )
275- allow ( Platform ) . to receive ( :assert_file )
276- allow ( Platform ) . to receive ( :assert_executable )
277- allow ( Platform ) . to receive ( :find_binary ) . and_return ( 'path' )
278-
279- described_class . path ( options , service )
280-
281- expect ( SeleniumManager ) . not_to have_received ( :driver_path )
282- expect ( Platform ) . to have_received ( :assert_executable ) . with ( 'path' )
283- end
284-
285221 it 'gives original error if not found by Selenium Manager' do
286- allow ( Platform ) . to receive ( :find_binary )
287222 allow ( SeleniumManager ) . to receive ( :driver_path ) . and_raise ( Error ::WebDriverError )
288223
289224 expect {
0 commit comments