From af9c19ab7fa61cc4ed423d69f76bdce5b469d237 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Mon, 22 Mar 2010 15:58:06 -0700 Subject: Bug #3406 augeas spec fails if there is not a default provider So I stubbed out the default provider. Signed-off-by: Jesse Wolfe --- spec/unit/type/augeas.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec') 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 -- cgit