@@ -85,7 +85,7 @@ module WebDriver
85
85
86
86
described_class . driver_path ( Options . chrome )
87
87
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" )
89
89
end
90
90
91
91
it 'uses browser version if specified' do
@@ -97,7 +97,7 @@ module WebDriver
97
97
described_class . driver_path ( options )
98
98
99
99
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" )
101
101
end
102
102
103
103
it 'uses browser location if specified' do
@@ -109,7 +109,7 @@ module WebDriver
109
109
described_class . driver_path ( options )
110
110
111
111
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\" " )
113
113
end
114
114
115
115
it 'properly escapes plain spaces in browser location' do
@@ -121,7 +121,7 @@ module WebDriver
121
121
described_class . driver_path ( options )
122
122
123
123
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\" " )
125
125
end
126
126
127
127
it 'properly escapes escaped spaces in browser location' do
@@ -133,7 +133,7 @@ module WebDriver
133
133
described_class . driver_path ( options )
134
134
135
135
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\" " )
137
137
end
138
138
end
139
139
end
0 commit comments