summaryrefslogtreecommitdiff
path: root/spec/unit/rest_spec.rb
diff options
context:
space:
mode:
authorJoseph Anthony Pasquale Holsten <joseph@josephholsten.com>2014-02-21 15:57:41 +0000
committerJoseph Anthony Pasquale Holsten <joseph@josephholsten.com>2014-02-25 19:04:07 +0000
commitdeb10bb0b586dd0bc842893c42831caf6ddff273 (patch)
tree3ce21827b0f6f2bcef56deadd48569c9574b9202 /spec/unit/rest_spec.rb
parenta4c7d9154afcdb760ff867cbb98118e5cf4089cd (diff)
downloadchef-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.rb5
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