summaryrefslogtreecommitdiff
path: root/lib/chef/audit
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-12-09 08:51:59 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:23 -0800
commite208a23c658c323977026c9696b0582d3a0c45ad (patch)
tree31a882a360ad36a477124ad0afa5a69babbc1203 /lib/chef/audit
parent1d64d2371e1abe83c3fe726e46e95d924a44e15d (diff)
downloadchef-e208a23c658c323977026c9696b0582d3a0c45ad.tar.gz
Adding test for recipe DSL audit additions
Diffstat (limited to 'lib/chef/audit')
-rw-r--r--lib/chef/audit/audit_event_proxy.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/audit/audit_event_proxy.rb b/lib/chef/audit/audit_event_proxy.rb
index 36160db9bb..1e40258113 100644
--- a/lib/chef/audit/audit_event_proxy.rb
+++ b/lib/chef/audit/audit_event_proxy.rb
@@ -43,8 +43,7 @@ class Chef
described_class = example.metadata[:described_class]
if described_class
resource_type = described_class.class.name.split(':')[-1]
- # TODO https://github.com/serverspec/serverspec/pull/493
- resource_name = described_class.instance_variable_get(:@name)
+ resource_name = described_class.name
end
# The following code builds up the context - the list of wrapping `describe` or `control` blocks