diff options
author | danielsdeleo <dan@getchef.com> | 2015-03-31 14:33:19 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2015-04-01 13:35:01 -0700 |
commit | 8157fdea21c913dfb99ee4f8c285d2d64557d4bc (patch) | |
tree | 3d4d3998276f92411cc61cac8135befd3de714e2 /spec/unit/application | |
parent | f066fef19be99ba1b857ecaaabc4c70c9201f1d4 (diff) | |
download | chef-8157fdea21c913dfb99ee4f8c285d2d64557d4bc.tar.gz |
Add --no-listen option to disable zero binding to port
Diffstat (limited to 'spec/unit/application')
-rw-r--r-- | spec/unit/application/client_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 501251b7fe..c753ca0ab8 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -131,6 +131,16 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config end + describe "when --no-listen is set" do + + it "configures listen = false" do + app.config[:listen] = false + app.reconfigure + expect(Chef::Config[:listen]).to eq(false) + end + + end + describe "when the json_attribs configuration option is specified" do let(:json_attribs) { {"a" => "b"} } |