diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-16 10:19:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 10:19:34 -0700 |
commit | 1b8c24a83a2ba2d7d3c76ebe5c885187948b9fac (patch) | |
tree | 8a305a1e25b902e2dc281d23655e860b032bbf2d /spec | |
parent | d30645d1b05af5c472b1e2d505603a19ed4ddf5c (diff) | |
parent | bcf5474410be6198bd0bf04d1ea7a636962194e2 (diff) | |
download | chef-1b8c24a83a2ba2d7d3c76ebe5c885187948b9fac.tar.gz |
Merge pull request #6168 from oclaussen/generate_valid_gemfile
Make gem_installer generate a valid Gemfile
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/cookbook/gem_installer_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/unit/cookbook/gem_installer_spec.rb b/spec/unit/cookbook/gem_installer_spec.rb index 91e6959331..b7c8db514a 100644 --- a/spec/unit/cookbook/gem_installer_spec.rb +++ b/spec/unit/cookbook/gem_installer_spec.rb @@ -22,7 +22,14 @@ describe Chef::Cookbook::GemInstaller do :cookbook, metadata: double( :metadata, - gems: [["httpclient", ">= 1.0"]] + gems: [["httpclient", ">= 1.0", { "git" => "https://github.com/nahi/httpclient" }]] + ) + ), + test4: double( + :cookbook, + metadata: double( + :metadata, + gems: [["httpclient", { "path" => "./gems/httpclient" }]] ) ), } |