summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorBryan Kearney <bkearney@redhat.com>2010-03-17 08:56:36 -0400
committerBryan Kearney <bkearney@redhat.com>2010-03-17 08:56:36 -0400
commita1d216c74ee7245e0edaaba7d9384b59d442bcf2 (patch)
tree43737b2d15fe4ec5123b916eb092c5797ac255b7 /spec
parentd532e6d6c64f438de9596b07f1f4f0cb81071446 (diff)
Fixed the return types were valid, and removed the copy paste error with the exception logic
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/augeas/augeas.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/augeas/augeas.rb b/spec/unit/provider/augeas/augeas.rb
index 89d3f503b..067126cbd 100644
--- a/spec/unit/provider/augeas/augeas.rb
+++ b/spec/unit/provider/augeas/augeas.rb
@@ -318,7 +318,7 @@ describe provider_class do
command = "set JarJar Binks"
context = "/some/path/"
@resource.expects(:[]).times(2).returns(command).then.returns(context)
- @augeas.expects(:set).with("/some/path/JarJar", "Binks")
+ @augeas.expects(:set).with("/some/path/JarJar", "Binks").returns(true)
@augeas.expects(:save).returns(true)
@augeas.expects(:close)
@provider.execute_changes.should == :executed
@@ -348,7 +348,7 @@ describe provider_class do
command = "clear Jar/Jar"
context = "/foo/"
@resource.expects(:[]).times(2).returns(command).then.returns(context)
- @augeas.expects(:clear).with("/foo/Jar/Jar")
+ @augeas.expects(:clear).with("/foo/Jar/Jar").returns(true)
@augeas.expects(:save).returns(true)
@augeas.expects(:close)
@provider.execute_changes.should == :executed
@@ -390,7 +390,7 @@ describe provider_class do
context = "/foo/"
@resource.expects(:[]).times(2).returns(command).then.returns(context)
@augeas.expects(:insert).with("/Jar/Jar", "Binks", false)
- @augeas.expects(:clear).with("/foo/Jar/Jar")
+ @augeas.expects(:clear).with("/foo/Jar/Jar").returns(true)
@augeas.expects(:save).returns(true)
@augeas.expects(:close)
@provider.execute_changes.should == :executed