[Pkg-puppet-devel] [facter] 08/46: (maint) Use RSpec 2.9 expectations

Stig Sandbeck Mathisen ssm at debian.org
Sun Sep 1 10:47:26 UTC 2013


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

ssm pushed a commit to branch master
in repository facter.

commit d4fb54850554d67bc3e16245331a684a79d1041c
Author: Adrien Thebo <git at somethingsinistral.net>
Date:   Tue Apr 16 12:49:55 2013 -0700

    (maint) Use RSpec 2.9 expectations
    
    We have RSpec 2.11 listed in the project Gemfile but CI is still using
    2.9. This commit switches the expectation syntax to the older version
    for compatibility.
---
 spec/unit/virtual_spec.rb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/unit/virtual_spec.rb b/spec/unit/virtual_spec.rb
index 4aadf0e..6215e30 100755
--- a/spec/unit/virtual_spec.rb
+++ b/spec/unit/virtual_spec.rb
@@ -206,10 +206,10 @@ describe "Virtual fact" do
       end
     end
 
-    it "(#20236) is vmware when dmidecode contains vmware and lspci returns insufficient information", :focus => true do
+    it "(#20236) is vmware when dmidecode contains vmware and lspci returns insufficient information" do
       Facter::Util::Resolution.stubs(:exec).with('lspci 2>/dev/null').returns("garbage\ninformation\n")
       Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns("On Board Device 1 Information\nType: Video\nStatus: Disabled\nDescription: VMware SVGA II")
-      expect(Facter.fact(:virtual).value).to eq("vmware")
+      Facter.fact(:virtual).value.should eq("vmware")
     end
   end
 

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