summaryrefslogtreecommitdiff
path: root/chef/spec/unit/node_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/unit/node_spec.rb')
-rw-r--r--chef/spec/unit/node_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/spec/unit/node_spec.rb b/chef/spec/unit/node_spec.rb
index a7d44a2f62..77883bab62 100644
--- a/chef/spec/unit/node_spec.rb
+++ b/chef/spec/unit/node_spec.rb
@@ -249,7 +249,7 @@ describe Chef::Node do
end
it "should raise an ArgumentError if you ask for an attribute that doesn't exist via method_missing" do
- lambda { @node.sunshine }.should raise_error(ArgumentError)
+ lambda { @node.sunshine }.should raise_error(NoMethodError)
end
it "should allow you to iterate over attributes with each_attribute" do