[DRE-commits] [SCM] capistrano.git branch, master, updated. 209f29ed97e9546b6e62213e742939fe6f6d4b73
Antonio Terceiro
terceiro at debian.org
Fri Jan 6 19:26:44 UTC 2012
The following commit has been merged in the master branch:
commit 2f1085850c32b9936c1824e413e739391c1ddb59
Author: Antonio Terceiro <terceiro at debian.org>
Date: Fri Jan 6 17:18:45 2012 -0200
Fake a successfull system() call
Without this, some tests in test/deploy/strategy/copy_test.rb will fail
because they stub system() but the code just after the stubbed system()
checks the value of $?; since there was no actual system() call at that
point, the code raises an exception as if the system() call had failed.
For some reason, when running the tests the upstream way (with rake),
this does not happen.
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 21cabc5..94ebf56 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,2 +1,3 @@
+system('true')
$LOAD_PATH << 'test'
Dir.glob('test/**/*_test.rb').each { |f| require f }
--
capistrano.git
More information about the Pkg-ruby-extras-commits
mailing list