diff options
-rw-r--r-- | spec/unit/audit/runner_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/audit/runner_spec.rb b/spec/unit/audit/runner_spec.rb index 10d8a645a7..0bd4c18388 100644 --- a/spec/unit/audit/runner_spec.rb +++ b/spec/unit/audit/runner_spec.rb @@ -37,7 +37,7 @@ describe Chef::Audit::Runner do end context "when we run in audit mode" do - paths = [ "/opt/chef/lib/chef/", 'C:\windows/here/lib/chef/' , "/opt/chef/extra/folders/lib/chef/"] + let(:paths) { [ "/opt/chef/lib/chef/", 'C:\windows/here/lib/chef/' , "/opt/chef/extra/folders/lib/chef/"] } it "excludes the current path from backtrace" do paths.each do |path| expect(runner.exclusion_pattern).to match(path) |