summaryrefslogtreecommitdiff
path: root/spec/unit/knife/core/bootstrap_context_spec.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-11-25 14:45:10 -0800
committertyler-ball <tyleraball@gmail.com>2014-11-25 14:45:10 -0800
commit2e3ea9d76d4b8e912ff88b22b9cb29b9c8d9009c (patch)
tree70c0ccd28fab446b92a5db0ce6797fcfd49f7e2a /spec/unit/knife/core/bootstrap_context_spec.rb
parent2cabf9c5ba969ff89128d5334e36a76c766fce93 (diff)
parent5bab29b02248a4468a7fbf7f6226c30255c3abe3 (diff)
downloadchef-2e3ea9d76d4b8e912ff88b22b9cb29b9c8d9009c.tar.gz
Merge branch 'master' into tball/contrib-pass
Conflicts: CHANGELOG.md
Diffstat (limited to 'spec/unit/knife/core/bootstrap_context_spec.rb')
-rw-r--r--spec/unit/knife/core/bootstrap_context_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/unit/knife/core/bootstrap_context_spec.rb b/spec/unit/knife/core/bootstrap_context_spec.rb
index 1291571358..af8fa3f698 100644
--- a/spec/unit/knife/core/bootstrap_context_spec.rb
+++ b/spec/unit/knife/core/bootstrap_context_spec.rb
@@ -205,4 +205,18 @@ EXPECTED
end
end
+ describe "prerelease" do
+ it "isn't set in the config_content by default" do
+ expect(bootstrap_context.config_content).not_to include("prerelease")
+ end
+
+ describe "when configured via cli" do
+ let(:config) {{:prerelease => true}}
+
+ it "uses CLI value" do
+ expect(bootstrap_context.latest_current_chef_version_string).to eq("-p")
+ end
+ end
+ end
+
end