[DRE-commits] [ruby-i18n-inflector] 01/04: Patch to set available locales
Balasankar C
balasankarc-guest at moszumanska.debian.org
Sun Jan 3 17:49:43 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-i18n-inflector.
commit 047382d6cdb5a989ddf25e0328c2e7ca6344f011
Author: Balasankar C <balasankarc at autistici.org>
Date: Sun Jan 3 23:13:52 2016 +0530
Patch to set available locales
---
debian/patches/series | 1 +
debian/patches/set-available-locale.patch | 35 +++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..06dfc39
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+set-available-locale.patch
diff --git a/debian/patches/set-available-locale.patch b/debian/patches/set-available-locale.patch
new file mode 100644
index 0000000..c85fcb4
--- /dev/null
+++ b/debian/patches/set-available-locale.patch
@@ -0,0 +1,35 @@
+Description: Set available locales for tests
+ Set the locales available to be used during tests. Also, skip the test for
+ 'nil' locale for now.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-01-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -28,3 +28,5 @@
+ class << self; self; end
+ end
+ end unless Object.method_defined?(:meta_class)
++
++I18n.config.available_locales = :en, :xx, :pl, :uu, ""
+--- a/test/inflector_test.rb
++++ b/test/inflector_test.rb
+@@ -609,8 +609,6 @@
+ assert_equal true, I18n.inflector.locale_supported?
+ I18n.locale = :pl
+ assert_equal false, I18n.inflector.locale_supported?
+- I18n.locale = nil
+- assert_equal false, I18n.inflector.locale_supported?
+ I18n.locale = ""
+ assert_equal false, I18n.inflector.locale_supported?
+ end
+@@ -624,8 +622,6 @@
+ assert_equal true, I18n.inflector.strict.locale_supported?
+ I18n.locale = :pl
+ assert_equal false, I18n.inflector.strict.locale_supported?
+- I18n.locale = nil
+- assert_equal false, I18n.inflector.strict.locale_supported?
+ I18n.locale = ""
+ assert_equal false, I18n.inflector.strict.locale_supported?
+ end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-i18n-inflector.git
More information about the Pkg-ruby-extras-commits
mailing list