[Pkg-puppet-devel] [facter] 230/352: (FACT-321) Remove deprecated Resolution#to_s()

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:48 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 99841e2c1aaf589aa017f3383b19d3e8f5ea33ad
Author: Adrien Thebo <git at somethingsinistral.net>
Date:   Thu Feb 6 10:58:29 2014 -0800

    (FACT-321) Remove deprecated Resolution#to_s()
---
 lib/facter/util/resolution.rb     | 6 ------
 spec/unit/util/resolution_spec.rb | 6 ------
 2 files changed, 12 deletions(-)

diff --git a/lib/facter/util/resolution.rb b/lib/facter/util/resolution.rb
index 1607f1f..37423f4 100644
--- a/lib/facter/util/resolution.rb
+++ b/lib/facter/util/resolution.rb
@@ -106,12 +106,6 @@ class Facter::Util::Resolution
     end
   end
 
-  # (see value)
-  # @deprecated
-  def to_s
-    return self.value()
-  end
-
   private
 
   def resolve_value
diff --git a/spec/unit/util/resolution_spec.rb b/spec/unit/util/resolution_spec.rb
index 17e0688..83d8cd7 100755
--- a/spec/unit/util/resolution_spec.rb
+++ b/spec/unit/util/resolution_spec.rb
@@ -110,12 +110,6 @@ describe Facter::Util::Resolution do
     end
   end
 
-  it "should return its value when converted to a string" do
-    @resolve = Facter::Util::Resolution.new("yay")
-    @resolve.expects(:value).returns "myval"
-    @resolve.to_s.should == "myval"
-  end
-
   describe "setting options" do
     subject(:resolution) { described_class.new(:foo) }
 

-- 
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