diff options
Diffstat (limited to 'spec/unit/key_spec.rb')
-rw-r--r-- | spec/unit/key_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/key_spec.rb b/spec/unit/key_spec.rb index e3d9f8e7ad..efae549490 100644 --- a/spec/unit/key_spec.rb +++ b/spec/unit/key_spec.rb @@ -66,7 +66,7 @@ describe Chef::Key do context "when you feed it anything but a string" do it "should raise an ArgumentError" do - expect { key.send(field, Hash.new) }.to raise_error(ArgumentError) + expect { key.send(field, {}) }.to raise_error(ArgumentError) end end end |