diff options
author | Nimesh-Msys <nimesh.patni@msystechnologies.com> | 2019-01-29 16:04:02 +0530 |
---|---|---|
committer | Nimesh-Msys <nimesh.patni@msystechnologies.com> | 2019-02-04 11:50:25 +0530 |
commit | 13fd78e7b6523d8f172c2173ae8153168c319ff6 (patch) | |
tree | 478070373f832253075f9922533436542ebacd7a /spec/support/shared | |
parent | cdb329bb9ff22f84c445410e1fc819c04bd94699 (diff) | |
download | chef-13fd78e7b6523d8f172c2173ae8153168c319ff6.tar.gz |
As per the review comments
- Using `flags` attribute from resources itself
- Fixed and add the required test cases
Signed-off-by: Nimesh-Msys <nimesh.patni@msystechnologies.com>
Diffstat (limited to 'spec/support/shared')
-rw-r--r-- | spec/support/shared/unit/script_resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/unit/script_resource.rb b/spec/support/shared/unit/script_resource.rb index a04da4b63e..5c4f6eecbb 100644 --- a/spec/support/shared/unit/script_resource.rb +++ b/spec/support/shared/unit/script_resource.rb @@ -41,7 +41,7 @@ shared_examples_for "a script resource" do it "should accept a string for the flags" do script_resource.flags "-f" - expect(script_resource.flags).to eql("-f") + expect(script_resource.flags.strip).to eql("-f") end it "should raise an exception if users set command on the resource", chef: ">= 13" do |