[Pkg-puppet-devel] [facter] 93/352: (Maint) Remove unneeded mocking

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 098a248fa15d32fb0e68a614ccf1e4384a9622b8
Author: Andrew Parker <andy at puppetlabs.com>
Date:   Fri Nov 30 12:04:27 2012 -0800

    (Maint) Remove unneeded mocking
    
    There were mocks for something called 'settings', which were never used.
    This removes them.
---
 spec/unit/util/loader_spec.rb | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/spec/unit/util/loader_spec.rb b/spec/unit/util/loader_spec.rb
index e0e0908..8ba1185 100755
--- a/spec/unit/util/loader_spec.rb
+++ b/spec/unit/util/loader_spec.rb
@@ -31,8 +31,6 @@ describe Facter::Util::Loader do
   describe "#valid_seach_path?" do
     before :each do
       @loader = Facter::Util::Loader.new
-      @settings = mock 'settings'
-      @settings.stubs(:value).returns "/eh"
     end
 
     # Used to have test for " " as a directory since that should
@@ -94,8 +92,6 @@ describe Facter::Util::Loader do
   describe "when determining the search path" do
     before do
       @loader = Facter::Util::Loader.new
-      @settings = mock 'settings'
-      @settings.stubs(:value).returns "/eh"
     end
 
     it "should include the facter subdirectory of all paths in ruby LOAD_PATH" do

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list