[DRE-commits] [ruby-faker] 02/04: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Sun Sep 6 07:39:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-faker.

commit 8db3fa09ea93c22fc941c53a34803f44e5e5a303
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sun Sep 6 12:58:14 2015 +0530

    Make tests run
---
 debian/patches/series                     |  1 +
 debian/patches/set-available-locale.patch | 14 ++++++++++++++
 2 files changed, 15 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..79b9d2a
--- /dev/null
+++ b/debian/patches/set-available-locale.patch
@@ -0,0 +1,14 @@
+Description: Specify available locales in tests
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-09-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -9,4 +9,6 @@
+ I18n.available_locales = Dir[locales_path + '/*'].map do |file|
+   file.split('.').first
+ end
++
++I18n.config.available_locales = :en, :xy, "en-US", "en-CA", "en-UG", "en-au-ocker", "es", :xx, :shire, :home, :work, :kindergarden, "en-BORK", :pl, "uk", "en-GB", :de
+ I18n.enforce_available_locales = true

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-faker.git



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