Package: ruby-faker / 1.9.1-2

Metadata

Package Version Patches format
ruby-faker 1.9.1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 test_middle_name accept 2 letter middle names.patch | (download)

test/test_faker_name.rb | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 test_middle_name: accept 2-letter middle names

Some middle names in lib/locales/en/name.yml have only 2 letters.

0002 Specify available locales in tests.patch | (download)

test/test_helper.rb | 10 10 + 0 - 0 !
1 file changed, 10 insertions(+)

 specify available locales in tests

Signed-off-by: Antonio Terceiro <terceiro@debian.org>

0003 tests turn relative paths into absolute ones.patch | (download)

test/test_en_locale.rb | 2 1 + 1 - 0 !
test/test_es_locale.rb | 2 1 + 1 - 0 !
test/test_helper.rb | 4 2 + 2 - 0 !
test/test_locale.rb | 2 1 + 1 - 0 !
4 files changed, 5 insertions(+), 5 deletions(-)

 tests: turn relative paths into absolute ones

This fixes the tests to run against the installed package

0004 Fix failing tests against Ruby 2.7.patch | (download)

test/test_faker_birthday_in_leap_year.rb | 21 16 + 5 - 0 !
test/test_faker_date.rb | 11 9 + 2 - 0 !
2 files changed, 25 insertions(+), 7 deletions(-)

 fix failing tests against ruby 2.7

Two tests expect an ArgumentError exception but in Ruby 2.7 it was
changed to Date::Error. This patch is based on this upstream commit:

https://github.com/faker-ruby/faker/commit/54a1bbfc1e7f92f6230dfeefa893e17edfcb3802