summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/unit/type/augeas.rb2
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