summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/augeas
diff options
context:
space:
mode:
authorBryan Kearney <bkearney@redhat.com>2010-02-01 12:24:01 -0500
committerBryan Kearney <bkearney@redhat.com>2010-02-01 12:24:01 -0500
commit2ae7516d77c57c2c26c7afca1e8b825f307887c1 (patch)
tree91d8738a428801d8e30768fd9de021f3082ea684 /spec/unit/provider/augeas
parent55f6239d8efeb08e5a3d99c70257f9979432c16d (diff)
downloadpuppet-2ae7516d77c57c2c26c7afca1e8b825f307887c1.tar.gz
puppet-2ae7516d77c57c2c26c7afca1e8b825f307887c1.tar.xz
puppet-2ae7516d77c57c2c26c7afca1e8b825f307887c1.zip
2047: Add a not_include into match
Diffstat (limited to 'spec/unit/provider/augeas')
-rw-r--r--spec/unit/provider/augeas/augeas.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/provider/augeas/augeas.rb b/spec/unit/provider/augeas/augeas.rb
index 3b9bd2c95..89d3f503b 100644
--- a/spec/unit/provider/augeas/augeas.rb
+++ b/spec/unit/provider/augeas/augeas.rb
@@ -204,6 +204,16 @@ describe provider_class do
@provider.process_match(command).should == false
end
+ it "should return true for includes match" do
+ command = ["match", "fake value", "not_include JarJar"]
+ @provider.process_match(command).should == true
+ end
+
+ it "should return false for includes non match" do
+ command = ["match", "fake value", "not_include values"]
+ @provider.process_match(command).should == false
+ end
+
it "should return true for an array match" do
command = ["match", "fake value", "== ['set', 'of', 'values']"]
@provider.process_match(command).should == true