diff options
| author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-04-07 00:24:35 +0530 |
|---|---|---|
| committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-04-07 00:24:35 +0530 |
| commit | a700fec953f275b2b0338130baa85b12beec0aea (patch) | |
| tree | d154db2f588316c289b33036c5de256a040172b6 /spec/unit/resource_spec.rb | |
| parent | be60ec97c5774ebaf7d2f4cfdc82bc51f59fb2bb (diff) | |
| download | chef-a700fec953f275b2b0338130baa85b12beec0aea.tar.gz | |
some spec typos
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec/unit/resource_spec.rb')
| -rw-r--r-- | spec/unit/resource_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index d6b67e6f2e..d41cc0e8a3 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -366,7 +366,7 @@ describe Chef::Resource do end context "when property is sensitive" do - it "supresses that properties value" do + it "suppresses that properties value" do resource_class = Class.new(Chef::Resource) { property :foo, String, sensitive: true } resource = resource_class.new("sensitive_property_tests") resource.foo = "some value" @@ -375,7 +375,7 @@ describe Chef::Resource do end context "when property is required" do - it "does not propagate vailidation errors" do + it "does not propagate validation errors" do resource_class = Class.new(Chef::Resource) { property :foo, String, required: true } resource = resource_class.new("required_property_tests") expect { resource.to_text }.to_not raise_error Chef::Exceptions::ValidationFailed @@ -1027,7 +1027,7 @@ describe Chef::Resource do describe "with a syntax error in the resource spec" do - it "raises an exception immmediately" do + it "raises an exception immediately" do expect do resource.notifies(:run, "typo[missing-closing-bracket") end.to raise_error(Chef::Exceptions::InvalidResourceSpecification) @@ -1069,7 +1069,7 @@ describe Chef::Resource do error_inspector = Chef::Formatters::ErrorInspectors::ResourceFailureInspector.new(resource, action, err) description = Chef::Formatters::ErrorDescription.new("test") error_inspector.add_explanation(description) - Chef::Log.info("descrtiption: #{description.inspect},error_inspector: #{error_inspector}") + Chef::Log.info("description: #{description.inspect},error_inspector: #{error_inspector}") description.sections[1]["Compiled Resource:"] end |
