[DRE-commits] [SCM] gem2deb.git branch, master, updated. 0.2.8-5-g78c72b5

Antonio Terceiro terceiro at softwarelivre.org
Sun Sep 18 08:09:39 UTC 2011


The following commit has been merged in the master branch:
commit 4abcaa13e7ddf618c5b88e89d9bdb312f1b190d1
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Sun Sep 18 00:22:50 2011 -0700

    dh_ruby should not skip tests after a failing one

diff --git a/test/unit/dh_ruby_test.rb b/test/unit/dh_ruby_test.rb
index a0e03b0..b61e3b3 100644
--- a/test/unit/dh_ruby_test.rb
+++ b/test/unit/dh_ruby_test.rb
@@ -216,6 +216,17 @@ class DhRubyTest < Gem2DebTestCase
     end
   end
 
+  context 'run_tests' do
+    setup do
+      @dh_ruby = Gem2Deb::DhRuby.new
+    end
+    should 'not skip tests after one that fails' do
+      @dh_ruby.stubs(:run_tests_for_version).with('rubyX').returns(false)
+      @dh_ruby.expects(:run_tests_for_version).with('rubyY')
+      @dh_ruby.send(:run_tests, ['rubyX', 'rubyY'])
+    end
+  end
+
   protected
 
   def read_installed_file(gem_dirname, package, path)

-- 
gem2deb.git



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