|
177 | 177 |
|
178 | 178 | describe "with --git and --glob" do |
179 | 179 | it "adds dependency with specified git source" do |
180 | | - bundle "add foo --git=#{lib_path("foo-2.0")} --glob=./*.gemspec" |
| 180 | + bundle "add foo --git=#{lib_path("foo-2.0")} --glob='./*.gemspec'" |
181 | 181 |
|
182 | 182 | expect(bundled_app_gemfile.read).to match(%r{gem "foo", "~> 2.0", :git => "#{lib_path("foo-2.0")}", :glob => "\./\*\.gemspec"}) |
183 | 183 | expect(the_bundle).to include_gems "foo 2.0" |
|
190 | 190 | end |
191 | 191 |
|
192 | 192 | it "adds dependency with specified git source and branch" do |
193 | | - bundle "add foo --git=#{lib_path("foo-2.0")} --branch=test --glob=./*.gemspec" |
| 193 | + bundle "add foo --git=#{lib_path("foo-2.0")} --branch=test --glob='./*.gemspec'" |
194 | 194 |
|
195 | 195 | expect(bundled_app_gemfile.read).to match(%r{gem "foo", "~> 2.0", :git => "#{lib_path("foo-2.0")}", :branch => "test", :glob => "\./\*\.gemspec"}) |
196 | 196 | expect(the_bundle).to include_gems "foo 2.0" |
|
199 | 199 |
|
200 | 200 | describe "with --git and --ref and --glob" do |
201 | 201 | it "adds dependency with specified git source and branch" do |
202 | | - bundle "add foo --git=#{lib_path("foo-2.0")} --ref=#{revision_for(lib_path("foo-2.0"))} --glob=./*.gemspec" |
| 202 | + bundle "add foo --git=#{lib_path("foo-2.0")} --ref=#{revision_for(lib_path("foo-2.0"))} --glob='./*.gemspec'" |
203 | 203 |
|
204 | 204 | expect(bundled_app_gemfile.read).to match(%r{gem "foo", "~> 2\.0", :git => "#{lib_path("foo-2.0")}", :ref => "#{revision_for(lib_path("foo-2.0"))}", :glob => "\./\*\.gemspec"}) |
205 | 205 | expect(the_bundle).to include_gems "foo 2.0" |
|
208 | 208 |
|
209 | 209 | describe "with --github and --glob" do |
210 | 210 | it "adds dependency with specified github source", :realworld do |
211 | | - bundle "add rake --github=ruby/rake --glob=./*.gemspec" |
| 211 | + bundle "add rake --github=ruby/rake --glob='./*.gemspec'" |
212 | 212 |
|
213 | 213 | expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.\d+", :github => "ruby\/rake", :glob => "\.\/\*\.gemspec"}) |
214 | 214 | end |
215 | 215 | end |
216 | 216 |
|
217 | 217 | describe "with --github and --branch --and glob" do |
218 | 218 | it "adds dependency with specified github source and branch", :realworld do |
219 | | - bundle "add rake --github=ruby/rake --branch=master --glob=./*.gemspec" |
| 219 | + bundle "add rake --github=ruby/rake --branch=master --glob='./*.gemspec'" |
220 | 220 |
|
221 | 221 | expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.\d+", :github => "ruby\/rake", :branch => "master", :glob => "\.\/\*\.gemspec"}) |
222 | 222 | end |
223 | 223 | end |
224 | 224 |
|
225 | 225 | describe "with --github and --ref and --glob" do |
226 | 226 | it "adds dependency with specified github source and ref", :realworld do |
227 | | - bundle "add rake --github=ruby/rake --ref=5c60da8 --glob=./*.gemspec" |
| 227 | + bundle "add rake --github=ruby/rake --ref=5c60da8 --glob='./*.gemspec'" |
228 | 228 |
|
229 | 229 | expect(bundled_app_gemfile.read).to match(%r{gem "rake", "~> 13\.\d+", :github => "ruby\/rake", :ref => "5c60da8", :glob => "\.\/\*\.gemspec"}) |
230 | 230 | end |
|
0 commit comments