@@ -85,7 +85,7 @@ module WebDriver
8585
8686 described_class . driver_path ( Options . chrome )
8787
88- expect ( described_class ) . to have_received ( :run ) . with ( ' selenium-manager --browser chrome --output json' )
88+ expect ( described_class ) . to have_received ( :run ) . with ( " selenium-manager --browser ' chrome' --output json" )
8989 end
9090
9191 it 'uses browser version if specified' do
@@ -97,7 +97,7 @@ module WebDriver
9797 described_class . driver_path ( options )
9898
9999 expect ( described_class ) . to have_received ( :run )
100- . with ( ' selenium-manager --browser chrome --output json --browser-version 1' )
100+ . with ( " selenium-manager --browser ' chrome' --output json --browser-version 1" )
101101 end
102102
103103 it 'uses browser location if specified' do
@@ -109,7 +109,7 @@ module WebDriver
109109 described_class . driver_path ( options )
110110
111111 expect ( described_class ) . to have_received ( :run )
112- . with ( ' selenium-manager --browser chrome --output json --browser-path "/path/to/browser"' )
112+ . with ( " selenium-manager --browser ' chrome' --output json --browser-path \ " /path/to/browser\" " )
113113 end
114114
115115 it 'properly escapes plain spaces in browser location' do
@@ -121,7 +121,7 @@ module WebDriver
121121 described_class . driver_path ( options )
122122
123123 expect ( described_class ) . to have_received ( :run )
124- . with ( ' selenium-manager --browser chrome --output json --browser-path "/path\ to/the/browser"' )
124+ . with ( " selenium-manager --browser ' chrome' --output json --browser-path \ " /path\\ to/the/browser\" " )
125125 end
126126
127127 it 'properly escapes escaped spaces in browser location' do
@@ -133,7 +133,7 @@ module WebDriver
133133 described_class . driver_path ( options )
134134
135135 expect ( described_class ) . to have_received ( :run )
136- . with ( ' selenium-manager --browser chrome --output json --browser-path "/path\ to/the/browser"' )
136+ . with ( " selenium-manager --browser ' chrome' --output json --browser-path \ " /path\\ to/the/browser\" " )
137137 end
138138 end
139139 end
0 commit comments