summaryrefslogtreecommitdiff
path: root/spec/unit/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 /spec/unit/audit
parent1d64d2371e1abe83c3fe726e46e95d924a44e15d (diff)
downloadchef-e208a23c658c323977026c9696b0582d3a0c45ad.tar.gz
Adding test for recipe DSL audit additions
Diffstat (limited to 'spec/unit/audit')
-rw-r--r--spec/unit/audit/audit_event_proxy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/audit/audit_event_proxy_spec.rb b/spec/unit/audit/audit_event_proxy_spec.rb
index 1fddde43f1..2c4a0a1b9a 100644
--- a/spec/unit/audit/audit_event_proxy_spec.rb
+++ b/spec/unit/audit/audit_event_proxy_spec.rb
@@ -204,7 +204,7 @@ describe Chef::Audit::AuditEventProxy do
# Metadata fields
let(:described_class) { double("Serverspec::Type::Port",
- :class => "Serverspec::Type::Port") }
+ :class => "Serverspec::Type::Port", :name => resource_name) }
# Control data fields
let(:resource_type) { "Port" }
@@ -262,7 +262,7 @@ describe Chef::Audit::AuditEventProxy do
# Metadata parts
let(:described_class) { double("Serverspec::Type::File",
- :class => "Serverspec::Type::File") }
+ :class => "Serverspec::Type::File", :name => resource_name) }
# Example group parts
let(:parent_group) {