[DRE-commits] [gem2deb] 01/03: gem_installer_test: fix for when n multiple Ruby versions are enabled

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Feb 26 14:35:48 UTC 2016


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit b8dd77e8ebcd59f12ceb36c83cf9a41978b4f587
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Feb 26 11:26:40 2016 -0300

    gem_installer_test: fix for when n multiple Ruby versions are enabled
---
 debian/changelog                | 2 ++
 test/unit/gem_installer_test.rb | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index df5d49f..f307b96 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ gem2deb (0.26.2) UNRELEASED; urgency=medium
 
   * dh-make-ruby: bump Standards-Version in generated debian/control files to
     3.9.7
+  * gem_installer_test: fix assertion to check the right value when multiple
+    Ruby versions are enabled.
 
  -- Antonio Terceiro <terceiro at debian.org>  Wed, 24 Feb 2016 14:47:23 -0300
 
diff --git a/test/unit/gem_installer_test.rb b/test/unit/gem_installer_test.rb
index a90aa56..d211b0d 100644
--- a/test/unit/gem_installer_test.rb
+++ b/test/unit/gem_installer_test.rb
@@ -41,7 +41,7 @@ class GemInstallerTest < Gem2DebTestCase
 
   should 'install native extension' do
     so = Dir.glob(INSTALLDIR + '/usr/lib/**/install_as_gem/install_as_gem_native.so')
-    assert_equal 1, so.size, "#{so.inspect} expected to have size 1"
+    assert_equal Gem2Deb::SUPPORTED_RUBY_VERSIONS.keys.size, so.size, "#{so.inspect} expected to have size 1"
   end
 
   private

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list