[DRE-commits] [ruby-sinatra] 04/05: Fix i18n test failure
Balasankar C
balasankarc-guest at moszumanska.debian.org
Wed Feb 24 18:19:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
balasankarc-guest pushed a commit to branch master
in repository ruby-sinatra.
commit 49bbf135040c5b1ed790a10bf3bdccf886848364
Author: Balasankar C <balasankarc at autistici.org>
Date: Wed Feb 24 23:48:13 2016 +0530
Fix i18n test failure
---
debian/patches/i18n-fix.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
2 files changed, 18 insertions(+)
diff --git a/debian/patches/i18n-fix.patch b/debian/patches/i18n-fix.patch
new file mode 100644
index 0000000..bfd0d4e
--- /dev/null
+++ b/debian/patches/i18n-fix.patch
@@ -0,0 +1,17 @@
+Description: Specify available locales during tests.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-02-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -21,6 +21,9 @@
+ require 'rack/test'
+ require 'sinatra/base'
+
++require 'i18n'
++I18n.config.available_locales = :en
++
+ class Sinatra::Base
+ include Minitest::Assertions
+ # Allow assertions in request context
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..065b498
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+i18n-fix.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sinatra.git
More information about the Pkg-ruby-extras-commits
mailing list