diff options
author | sawanoboly <sawanoboriyu@higanworks.com> | 2015-04-15 20:06:39 +0900 |
---|---|---|
committer | sawanoboly <sawanoboriyu@higanworks.com> | 2015-04-15 20:06:39 +0900 |
commit | 9117b3b7d326948fcbe4da0ea13b0698e1449b9d (patch) | |
tree | 8156c93a6e22e05c02923a5c1feb209645ed6cdc /spec/unit/shell_spec.rb | |
parent | 8641561770eb4e200537d822dfc3fce906fa0cc2 (diff) | |
download | chef-9117b3b7d326948fcbe4da0ea13b0698e1449b9d.tar.gz |
Show Chef::VERSION at prompt_c and prompt_i on shell session
Diffstat (limited to 'spec/unit/shell_spec.rb')
-rw-r--r-- | spec/unit/shell_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/shell_spec.rb b/spec/unit/shell_spec.rb index 617abcfde2..4d5581d4d6 100644 --- a/spec/unit/shell_spec.rb +++ b/spec/unit/shell_spec.rb @@ -67,9 +67,9 @@ describe Shell do conf.main = Object.new conf.main.instance_eval(&ObjectTestHarness) Shell.irb_conf[:IRB_RC].call(conf) - expect(conf.prompt_c).to eq("chef > ") + expect(conf.prompt_c).to eq("chef (#{Chef::VERSION})> ") expect(conf.return_format).to eq(" => %s \n") - expect(conf.prompt_i).to eq("chef > ") + expect(conf.prompt_i).to eq("chef (#{Chef::VERSION})> ") expect(conf.prompt_n).to eq("chef ?> ") expect(conf.prompt_s).to eq("chef%l> ") expect(conf.use_tracer).to eq(false) @@ -82,8 +82,8 @@ describe Shell do events = Chef::EventDispatch::Dispatcher.new conf.main = Chef::Recipe.new(nil,nil,Chef::RunContext.new(Chef::Node.new, {}, events)) Shell.irb_conf[:IRB_RC].call(conf) - expect(conf.prompt_c).to eq("chef:recipe > ") - expect(conf.prompt_i).to eq("chef:recipe > ") + expect(conf.prompt_c).to eq("chef:recipe (#{Chef::VERSION})> ") + expect(conf.prompt_i).to eq("chef:recipe (#{Chef::VERSION})> ") expect(conf.prompt_n).to eq("chef:recipe ?> ") expect(conf.prompt_s).to eq("chef:recipe%l> ") end @@ -94,8 +94,8 @@ describe Shell do conf = OpenStruct.new conf.main = Chef::Node.new Shell.irb_conf[:IRB_RC].call(conf) - expect(conf.prompt_c).to eq("chef:attributes > ") - expect(conf.prompt_i).to eq("chef:attributes > ") + expect(conf.prompt_c).to eq("chef:attributes (#{Chef::VERSION})> ") + expect(conf.prompt_i).to eq("chef:attributes (#{Chef::VERSION})> ") expect(conf.prompt_n).to eq("chef:attributes ?> ") expect(conf.prompt_s).to eq("chef:attributes%l> ") end |