diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-04-27 13:47:18 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-04-27 13:47:18 -0700 |
commit | 5cbffb04ce738ca07d4d313fe6bec6c8e245f268 (patch) | |
tree | 05823d1f39e9b6c4d755062af38e3c5bf477f425 | |
parent | 62cdac67f1325454837860aca3a95346fc9212ff (diff) | |
download | chef-5cbffb04ce738ca07d4d313fe6bec6c8e245f268.tar.gz |
fix specs borked by CHEF-2219
-rw-r--r-- | chef/spec/unit/knife/bootstrap_spec.rb | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/chef/spec/unit/knife/bootstrap_spec.rb b/chef/spec/unit/knife/bootstrap_spec.rb index 0a6fb46dbb..e09ea86d63 100644 --- a/chef/spec/unit/knife/bootstrap_spec.rb +++ b/chef/spec/unit/knife/bootstrap_spec.rb @@ -150,70 +150,5 @@ describe Chef::Knife::Bootstrap do end - describe "render_template" do - - end - end -describe Chef::Knife::Bootstrap::TemplateHelper do - before(:each) do - @context = Erubis::Context.new({ - :config => Hash.new - }) - end - - describe "bootstrap_version_string" do - after(:each) do - Chef::Config[:knife].delete(:bootstrap_version) - end - - formats = { - :gems => /^--version \d+\.\d+\.\d+/, - :nil => '\d+\.\d+\.\d+' - } - - context "by default" do - formats.each do |sym, format| - it "should return the current version of Chef for :#{sym.to_s}" do - @context.bootstrap_version_string(sym).should include Chef::VERSION - end - - it "should match the correct output format for :#{sym.to_s}" do - @context.bootstrap_version_string(sym).should match format - end - end - end - - context "with Chef::Config[:knife][:bootstrap_version] set" do - before(:each) do - @config_version = "0.9.12" - Chef::Config[:knife][:bootstrap_version] = @config_version - end - - formats.each do |sym, format| - it "should return the specified bootstrap version for :#{sym.to_s}" do - @context.bootstrap_version_string(sym).should include @config_version - end - - it "should match the correct output format for :#{sym.to_s}" do - @context.bootstrap_version_string(sym).should match format - end - end - end - - context "with config[:prerelease] set" do - before(:each) do - @context[:config][:prerelease] = true - end - - it "should return --prerelease only for :gems" do - formats.each do |sym, format| - version_string = @context.bootstrap_version_string(sym) - version_string.should == "--prerelease" if sym == :gems - version_string.should_not == "--prerelease" if sym != :gems - end - end - end - end -end |