diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2010-03-22 15:58:06 -0700 |
---|---|---|
committer | Jesse Wolfe <jes5199@gmail.com> | 2010-03-22 15:58:38 -0700 |
commit | af9c19ab7fa61cc4ed423d69f76bdce5b469d237 (patch) | |
tree | 056f69566462768a29765140c5feeca23c3b6081 /spec | |
parent | 718a87a436dd9b14d78e8b0220da471b7c7b282a (diff) | |
download | puppet-af9c19ab7fa61cc4ed423d69f76bdce5b469d237.tar.gz puppet-af9c19ab7fa61cc4ed423d69f76bdce5b469d237.tar.xz puppet-af9c19ab7fa61cc4ed423d69f76bdce5b469d237.zip |
Bug #3406 augeas spec fails if there is not a default provider
So I stubbed out the default provider.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/type/augeas.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/type/augeas.rb b/spec/unit/type/augeas.rb index 2c1b04453..b71f55f26 100644 --- a/spec/unit/type/augeas.rb +++ b/spec/unit/type/augeas.rb @@ -114,6 +114,8 @@ describe augeas do end it "should set the context when a specific file is used" do + fake_provider = stub_everything "fake_provider" + augeas.stubs(:defaultprovider).returns fake_provider augeas.new(:name => :no_incl, :lens => "Hosts.lns", :incl => "/etc/hosts")[:context].should == "/files/etc/hosts" end end |