[DRE-commits] [ruby-i18n] 05/05: fix tests on wheezy
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Feb 14 00:05:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master-wheezy-backports
in repository ruby-i18n.
commit 81c252f7bdbdb908542be2b5595bce0a9780e1a3
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Feb 13 20:51:50 2014 -0300
fix tests on wheezy
---
debian/changelog | 6 +-----
debian/patches/fix_tests_on_wheezy.patch | 13 +++++++++++++
debian/patches/series | 1 +
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index fc35a13..fee3603 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,11 +5,7 @@ ruby-i18n (0.6.9-1~bpo70+1) wheezy-backports; urgency=low
* Change ruby-activesupport depend to ruby-activesupport-3.2.
[ Antonio Terceiro ]
- * Ignore tests results on ruby1.8
- - this package is not compatible with ruby1.8 anymore (which is alraedy
- not the default on wheezy)
- - Change `ruby | ruby-interpreter` dependency to just `ruby` since not all
- packages provided `ruby-interpreter` are good enough now.
+ * add debian/patches/fix_tests_on_wheezy.patch to make the tests run
-- Thomas Pierson <contact at thomaspierson.fr> Fri, 07 Feb 2014 16:48:52 +0100
diff --git a/debian/patches/fix_tests_on_wheezy.patch b/debian/patches/fix_tests_on_wheezy.patch
new file mode 100644
index 0000000..9e89fde
--- /dev/null
+++ b/debian/patches/fix_tests_on_wheezy.patch
@@ -0,0 +1,13 @@
+Description: fix tests on wheezy
+ For some reason, the autoload hocus pocus is not working properly in the
+ context of these unit tests, so let's force a require of a missing library
+Author: Antonio Terceiro <terceiro at debian.org>
+
+--- a/test/api/simple_test.rb
++++ b/test/api/simple_test.rb
+@@ -1,4 +1,5 @@
+ require 'test_helper'
++require 'active_support/time_with_zone'
+
+ class I18nSimpleBackendApiTest < Test::Unit::TestCase
+ class Backend < I18n::Backend::Simple
diff --git a/debian/patches/series b/debian/patches/series
index 88e9474..d0fa7c7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
strip_bundler.patch
+fix_tests_on_wheezy.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-i18n.git
More information about the Pkg-ruby-extras-commits
mailing list