From aac4bd27807aa351a40478c152163101cce46bec Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Tue, 24 Sep 2024 16:27:47 +0530 Subject: [PATCH] fixing the test cases Signed-off-by: nikhil2611 --- spec/chef/helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/chef/helper_spec.rb b/spec/chef/helper_spec.rb index d1f4eb7..f1b7bc1 100644 --- a/spec/chef/helper_spec.rb +++ b/spec/chef/helper_spec.rb @@ -20,7 +20,7 @@ it "not to raise error if data consist of tab/new line OR space" do %w{abc\tabc abc\nabc}.each do |pass| json_data_with_slash = json.merge("password": pass) - expect { validate_json(json_data_with_slash.to_s) }.to_not raise_error + expect { validate_json(json_data_with_slash.to_json) }.to_not raise_error end end end