summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorsnehaldwivedi <sdwivedi@msystechnologies.com>2021-06-16 05:29:17 -0700
committerMarc A. Paradise <marc.paradise@gmail.com>2022-05-24 15:25:14 -0400
commitcb0f07953e14bc4614beb90f69ba66483fea264c (patch)
treeb8512edcc8dda33ea927f7e4ab593d7324083260 /spec
parentf859ba08cc51f79d34928316d50df8a9b8f7af1f (diff)
downloadchef-cb0f07953e14bc4614beb90f69ba66483fea264c.tar.gz
Updated reviewd changes to add cookbook name in path in error msg
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/cookbook/syntax_check_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/cookbook/syntax_check_spec.rb b/spec/unit/cookbook/syntax_check_spec.rb
index 88f0f102a7..8741c89bda 100644
--- a/spec/unit/cookbook/syntax_check_spec.rb
+++ b/spec/unit/cookbook/syntax_check_spec.rb
@@ -166,7 +166,7 @@ describe Chef::Cookbook::SyntaxCheck do
end
it "it indicates that a ruby file has a syntax error" do
- expect(Chef::Log).to receive(:fatal).with("Cookbook file default.rb has a ruby syntax error.")
+ expect(Chef::Log).to receive(:fatal).with("Cookbook file borken/recipes/default.rb has a ruby syntax error.")
allow(Chef::Log).to receive(:fatal)
expect(syntax_check.validate_ruby_files).to be_falsey
end