diff options
author | Joseph Anthony Pasquale Holsten <joseph@josephholsten.com> | 2014-02-21 15:57:41 +0000 |
---|---|---|
committer | Joseph Anthony Pasquale Holsten <joseph@josephholsten.com> | 2014-02-25 19:04:07 +0000 |
commit | deb10bb0b586dd0bc842893c42831caf6ddff273 (patch) | |
tree | 3ce21827b0f6f2bcef56deadd48569c9574b9202 /spec/unit/rest_spec.rb | |
parent | a4c7d9154afcdb760ff867cbb98118e5cf4089cd (diff) | |
download | chef-deb10bb0b586dd0bc842893c42831caf6ddff273.tar.gz |
ensure Chef::REST does not modify options in-place
Diffstat (limited to 'spec/unit/rest_spec.rb')
-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 |