diff options
author | Stephan Renatus <s.renatus@x-ion.de> | 2014-02-11 11:49:31 +0100 |
---|---|---|
committer | Stephan Renatus <s.renatus@x-ion.de> | 2014-02-11 11:49:31 +0100 |
commit | 35583c880418a529495b080a2cf7024c89a61bc0 (patch) | |
tree | 7bcb1b3acd8480d41e4b4d61a4d4499c11ebc77a /spec/unit/resource_spec.rb | |
parent | 7fba480379ce69f7e16310684f7d66bfd422ae7b (diff) | |
download | chef-35583c880418a529495b080a2cf7024c89a61bc0.tar.gz |
Fix resource_spec.rb
These are trivial fixes, but nonetheless...
Diffstat (limited to 'spec/unit/resource_spec.rb')
-rw-r--r-- | spec/unit/resource_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index e9a60c9861..cb89aed97a 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -537,12 +537,12 @@ describe Chef::Resource do @resource.should_skip?(:purr).should be_false end - it "should return false when if_only is met" do + it "should return false when only_if is met" do @resource.only_if { true } @resource.should_skip?(:purr).should be_false end - it "should return true when if_only is not met" do + it "should return true when only_if is not met" do @resource.only_if { false } @resource.should_skip?(:purr).should be_true end @@ -552,18 +552,18 @@ describe Chef::Resource do @resource.should_skip?(:purr).should be_true end - it "should return false when if_only is not met" do + it "should return false when not_if is not met" do @resource.not_if { false } @resource.should_skip?(:purr).should be_false end - it "should return true when if_only is met but also not_if is met" do + it "should return true when only_if is met but also not_if is met" do @resource.only_if { true } @resource.not_if { true } @resource.should_skip?(:purr).should be_true end - it "should return true when one of multiple if_only's is not met" do + it "should return true when one of multiple only_if's is not met" do @resource.only_if { true } @resource.only_if { false } @resource.only_if { true } |