summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-16 10:19:34 -0700
committerGitHub <noreply@github.com>2018-07-16 10:19:34 -0700
commit1b8c24a83a2ba2d7d3c76ebe5c885187948b9fac (patch)
tree8a305a1e25b902e2dc281d23655e860b032bbf2d /spec
parentd30645d1b05af5c472b1e2d505603a19ed4ddf5c (diff)
parentbcf5474410be6198bd0bf04d1ea7a636962194e2 (diff)
downloadchef-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.rb9
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" }]]
)
),
}