diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-03-19 15:19:09 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-03-19 15:19:09 -0700 |
commit | 7663f9c345b57eec07121b1ccbb8a3262fe0895c (patch) | |
tree | 522007ffede19b6a9c5cc85e2a29d1d3457de5e6 /spec | |
parent | 3929b2bd0169d8784d4cb3c1af41756785c7afce (diff) | |
parent | deb10bb0b586dd0bc842893c42831caf6ddff273 (diff) | |
download | chef-7663f9c345b57eec07121b1ccbb8a3262fe0895c.tar.gz |
Merge pull request #1280 from josephholsten/CHEF-5064
CHEF-5064: ensure Chef::REST does not modify options in-place
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/rest_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/rest_spec.rb b/spec/unit/rest_spec.rb index 3d6144ab35..8c83b34c9f 100644 --- a/spec/unit/rest_spec.rb +++ b/spec/unit/rest_spec.rb @@ -76,6 +76,11 @@ describe Chef::REST do Chef::Log.init(log_stringio) end + it "should allow the options hash to be frozen" do + options = {}.freeze + # should not raise any exception + Chef::REST.new(base_url, nil, nil, options) + end describe "calling an HTTP verb on a path or absolute URL" do it "adds a relative URL to the base url it was initialized with" do |