diff options
author | Kyleen MacGugan <kmacgugan@chef.io> | 2015-03-03 14:42:46 -0800 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2015-03-03 20:15:52 -0500 |
commit | d75f48cda2839e96d2ee1de81aa9e08fddeae623 (patch) | |
tree | d78ba6dc15def9478a57a2a8dc5c02bc9ce4b91b | |
parent | a24da7e7573a78afc751590e494aa9fae29e2463 (diff) | |
download | chef-d75f48cda2839e96d2ee1de81aa9e08fddeae623.tar.gz |
fix rspec test to use rspec best practices
-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) |