summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/augeas
diff options
context:
space:
mode:
authorDavid Lutterkort <lutter@redhat.com>2009-06-01 13:04:04 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-06-03 23:34:54 +1000
commit9735c5055cbb267e740838cd50b2205b87fffe57 (patch)
treea27e047b22c3ab3408515fd42389e9c04b5c36b1 /spec/unit/provider/augeas
parentdbfa61b5dcfa42f9fe12ad0d173f9195732d1bc3 (diff)
downloadpuppet-9735c5055cbb267e740838cd50b2205b87fffe57.tar.gz
puppet-9735c5055cbb267e740838cd50b2205b87fffe57.tar.xz
puppet-9735c5055cbb267e740838cd50b2205b87fffe57.zip
* provider/augeas: match comparison uses '==' and '!=' again
Change the syntax for match in an onlyif back to using '==' for equality comparison instead of 'eq' (this was the behavior before 9a2642) and make operator for inequality '!='.
Diffstat (limited to 'spec/unit/provider/augeas')
-rw-r--r--spec/unit/provider/augeas/augeas.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/augeas/augeas.rb b/spec/unit/provider/augeas/augeas.rb
index 1bec3a45f..c8b370f12 100644
--- a/spec/unit/provider/augeas/augeas.rb
+++ b/spec/unit/provider/augeas/augeas.rb
@@ -178,22 +178,22 @@ describe provider_class do
end
it "should return true for an array match" do
- command = ["match", "fake value", "eq ['set', 'of', 'values']"]
+ command = ["match", "fake value", "== ['set', 'of', 'values']"]
@provider.process_match(command).should == true
end
it "should return false for an array non match" do
- command = ["match", "fake value", "eq ['this', 'should', 'not', 'match']"]
+ command = ["match", "fake value", "== ['this', 'should', 'not', 'match']"]
@provider.process_match(command).should == false
end
it "should return false for an array match with noteq" do
- command = ["match", "fake value", "noteq ['set', 'of', 'values']"]
+ command = ["match", "fake value", "!= ['set', 'of', 'values']"]
@provider.process_match(command).should == false
end
it "should return true for an array non match with noteq" do
- command = ["match", "fake value", "noteq ['this', 'should', 'not', 'match']"]
+ command = ["match", "fake value", "!= ['this', 'should', 'not', 'match']"]
@provider.process_match(command).should == true
end
end