summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyleen MacGugan <kmacgugan@chef.io>2015-03-03 14:42:46 -0800
committerKyleen MacGugan <kmacgugan@chef.io>2015-03-03 14:42:46 -0800
commitffff336a8e2d0dc63b3f345db920c3d7c67268b1 (patch)
tree4aaeb319292b5f6b68bd052bd6501bef2218b090
parentcd8df9a5c54011208320b01d0cbd49da9c5a2dcf (diff)
downloadchef-kyleen/audit-backtrace-rspec.tar.gz
fix rspec test to use rspec best practiceskyleen/audit-backtrace-rspec
-rw-r--r--spec/unit/audit/runner_spec.rb2
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)