holidays 5.7.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitmodules +1 -1
- data/CHANGELOG.md +11 -0
- data/lib/generated_definitions/north_america.rb +1 -1
- data/lib/generated_definitions/tr.rb +1 -0
- data/lib/generated_definitions/us.rb +1 -1
- data/lib/holidays/definition/context/generator.rb +5 -36
- data/lib/holidays/definition/decorator/test.rb +37 -0
- data/lib/holidays/definition/entity/test.rb +11 -0
- data/lib/holidays/definition/generator/test.rb +51 -0
- data/lib/holidays/definition/parser/test.rb +86 -0
- data/lib/holidays/definition/validator/test.rb +71 -0
- data/lib/holidays/errors.rb +3 -0
- data/lib/holidays/factory/definition.rb +24 -0
- data/lib/holidays/version.rb +1 -1
- data/test/coverage_report.rb +1 -0
- data/test/data/test_custom_year_range_holiday_defs.yaml +7 -0
- data/test/data/test_multiple_custom_holiday_defs.yaml +7 -4
- data/test/data/test_single_custom_holiday_defs.yaml +7 -4
- data/test/data/test_single_custom_holiday_with_custom_procs.yaml +11 -7
- data/test/defs/test_defs_ar.rb +33 -19
- data/test/defs/test_defs_at.rb +14 -11
- data/test/defs/test_defs_au.rb +172 -141
- data/test/defs/test_defs_be_fr.rb +23 -14
- data/test/defs/test_defs_be_nl.rb +23 -14
- data/test/defs/test_defs_bg.rb +29 -17
- data/test/defs/test_defs_br.rb +33 -19
- data/test/defs/test_defs_ca.rb +175 -176
- data/test/defs/test_defs_ch.rb +29 -23
- data/test/defs/test_defs_cl.rb +49 -27
- data/test/defs/test_defs_cr.rb +17 -11
- data/test/defs/test_defs_cz.rb +25 -15
- data/test/defs/test_defs_de.rb +52 -61
- data/test/defs/test_defs_dk.rb +31 -19
- data/test/defs/test_defs_ecb_target.rb +14 -10
- data/test/defs/test_defs_ee.rb +28 -20
- data/test/defs/test_defs_el.rb +29 -17
- data/test/defs/test_defs_es.rb +114 -52
- data/test/defs/test_defs_europe.rb +1154 -715
- data/test/defs/test_defs_federal_reserve.rb +99 -57
- data/test/defs/test_defs_fedex.rb +19 -12
- data/test/defs/test_defs_fi.rb +47 -27
- data/test/defs/test_defs_fr.rb +29 -24
- data/test/defs/test_defs_gb.rb +90 -51
- data/test/defs/test_defs_ge.rb +40 -28
- data/test/defs/test_defs_hk.rb +47 -26
- data/test/defs/test_defs_hr.rb +32 -18
- data/test/defs/test_defs_hu.rb +26 -16
- data/test/defs/test_defs_ie.rb +41 -25
- data/test/defs/test_defs_is.rb +39 -22
- data/test/defs/test_defs_it.rb +23 -14
- data/test/defs/test_defs_jp.rb +112 -59
- data/test/defs/test_defs_kr.rb +25 -17
- data/test/defs/test_defs_li.rb +20 -20
- data/test/defs/test_defs_lt.rb +51 -30
- data/test/defs/test_defs_lu.rb +17 -12
- data/test/defs/test_defs_ma.rb +17 -11
- data/test/defs/test_defs_mt_en.rb +28 -19
- data/test/defs/test_defs_mt_mt.rb +28 -19
- data/test/defs/test_defs_mx.rb +33 -22
- data/test/defs/test_defs_my.rb +11 -8
- data/test/defs/test_defs_nerc.rb +17 -11
- data/test/defs/test_defs_nl.rb +21 -13
- data/test/defs/test_defs_no.rb +31 -18
- data/test/defs/test_defs_north_america.rb +507 -393
- data/test/defs/test_defs_nyse.rb +26 -15
- data/test/defs/test_defs_nz.rb +47 -28
- data/test/defs/test_defs_pe.rb +35 -20
- data/test/defs/test_defs_ph.rb +17 -11
- data/test/defs/test_defs_pl.rb +200 -119
- data/test/defs/test_defs_pt.rb +33 -24
- data/test/defs/test_defs_ro.rb +39 -24
- data/test/defs/test_defs_rs_cyrl.rb +33 -26
- data/test/defs/test_defs_rs_la.rb +33 -26
- data/test/defs/test_defs_ru.rb +22 -16
- data/test/defs/test_defs_scandinavia.rb +193 -116
- data/test/defs/test_defs_se.rb +47 -28
- data/test/defs/test_defs_sg.rb +13 -9
- data/test/defs/test_defs_si.rb +93 -24
- data/test/defs/test_defs_sk.rb +29 -17
- data/test/defs/test_defs_tn.rb +15 -10
- data/test/defs/test_defs_tr.rb +39 -30
- data/test/defs/test_defs_united_nations.rb +0 -1
- data/test/defs/test_defs_ups.rb +19 -12
- data/test/defs/test_defs_us.rb +333 -217
- data/test/defs/test_defs_ve.rb +23 -16
- data/test/defs/test_defs_vi.rb +10 -8
- data/test/defs/test_defs_za.rb +23 -14
- data/test/holidays/definition/context/test_generator.rb +40 -13
- data/test/holidays/definition/decorator/test_test.rb +123 -0
- data/test/holidays/definition/generator/test_test.rb +113 -0
- data/test/holidays/definition/parser/test_test.rb +142 -0
- data/test/holidays/definition/validator/test_region.rb +5 -0
- data/test/holidays/definition/validator/test_test.rb +60 -0
- metadata +15 -8
- data/test/holidays/factory/test_date_calculator.rb +0 -32
- data/test/holidays/factory/test_definition.rb +0 -62
- data/test/holidays/factory/test_finder.rb +0 -25
data/test/defs/test_defs_nyse.rb
CHANGED
|
@@ -7,22 +7,33 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
|
|
|
7
7
|
class NyseDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
8
|
|
|
9
9
|
def test_nyse
|
|
10
|
-
|
|
11
|
-
Date.civil(2008,1,21) => 'Martin Luther King, Jr. Day',
|
|
12
|
-
Date.civil(2008,2,18) => 'Presidents\' Day',
|
|
13
|
-
Date.civil(2008,3,21) => 'Good Friday',
|
|
14
|
-
Date.civil(2008,5,26) => 'Memorial Day',
|
|
15
|
-
Date.civil(2008,7,4) => 'Independence Day',
|
|
16
|
-
Date.civil(2008,9,1) => 'Labor Day',
|
|
17
|
-
Date.civil(2008,11,27) => 'Thanksgiving',
|
|
18
|
-
Date.civil(2008,12,25) => 'Christmas Day'}.each do |date, name|
|
|
19
|
-
assert_equal name, (Holidays.on(date, :nyse)[0] || {})[:name]
|
|
20
|
-
end
|
|
10
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2008, 1, 1), [:nyse])[0] || {})[:name]
|
|
21
11
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2017, 1, 2), [:nyse], [:observed])[0] || {})[:name]
|
|
13
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2012, 1, 2), [:nyse], [:observed])[0] || {})[:name]
|
|
14
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2011, 1, 1), [:nyse], [:observed])[0] || {})[:name]
|
|
15
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2006, 1, 2), [:nyse], [:observed])[0] || {})[:name]
|
|
16
|
+
|
|
17
|
+
assert_equal "Martin Luther King, Jr. Day", (Holidays.on(Date.civil(2008, 1, 21), [:nyse])[0] || {})[:name]
|
|
18
|
+
|
|
19
|
+
assert_equal "Presidents' Day", (Holidays.on(Date.civil(2008, 2, 18), [:nyse])[0] || {})[:name]
|
|
20
|
+
|
|
21
|
+
assert_equal "Good Friday", (Holidays.on(Date.civil(2008, 3, 21), [:nyse])[0] || {})[:name]
|
|
22
|
+
|
|
23
|
+
assert_equal "Memorial Day", (Holidays.on(Date.civil(2008, 5, 26), [:nyse])[0] || {})[:name]
|
|
24
|
+
|
|
25
|
+
assert_equal "Independence Day", (Holidays.on(Date.civil(2008, 7, 4), [:nyse])[0] || {})[:name]
|
|
26
|
+
|
|
27
|
+
assert_equal "Labor Day", (Holidays.on(Date.civil(2008, 9, 1), [:nyse])[0] || {})[:name]
|
|
28
|
+
|
|
29
|
+
assert_equal "Thanksgiving", (Holidays.on(Date.civil(2008, 11, 27), [:nyse])[0] || {})[:name]
|
|
30
|
+
|
|
31
|
+
assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:nyse])[0] || {})[:name]
|
|
32
|
+
|
|
33
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2017, 1, 2), [:nyse], [:observed])[0] || {})[:name]
|
|
34
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2012, 1, 2), [:nyse], [:observed])[0] || {})[:name]
|
|
35
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2011, 1, 1), [:nyse], [:observed])[0] || {})[:name]
|
|
36
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2006, 1, 2), [:nyse], [:observed])[0] || {})[:name]
|
|
26
37
|
|
|
27
38
|
end
|
|
28
39
|
end
|
data/test/defs/test_defs_nz.rb
CHANGED
|
@@ -7,34 +7,53 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
|
|
|
7
7
|
class NzDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
8
|
|
|
9
9
|
def test_nz
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Date.civil(2007,2,
|
|
13
|
-
|
|
14
|
-
Date.civil(2007,
|
|
15
|
-
|
|
16
|
-
Date.civil(2007,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
assert_equal
|
|
21
|
-
|
|
22
|
-
assert_equal
|
|
23
|
-
|
|
24
|
-
assert_equal
|
|
25
|
-
|
|
26
|
-
assert_equal
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
assert_equal
|
|
31
|
-
|
|
32
|
-
assert_equal
|
|
33
|
-
|
|
34
|
-
assert_equal
|
|
35
|
-
|
|
36
|
-
assert_equal
|
|
37
|
-
|
|
10
|
+
assert_equal "New Year's Day", (Holidays.on(Date.civil(2007, 1, 1), [:nz], [:informal])[0] || {})[:name]
|
|
11
|
+
|
|
12
|
+
assert_equal "Day after New Year's Day", (Holidays.on(Date.civil(2007, 1, 2), [:nz], [:informal])[0] || {})[:name]
|
|
13
|
+
|
|
14
|
+
assert_equal "Waitangi Day", (Holidays.on(Date.civil(2007, 2, 6), [:nz], [:informal])[0] || {})[:name]
|
|
15
|
+
|
|
16
|
+
assert_equal "Good Friday", (Holidays.on(Date.civil(2007, 4, 6), [:nz], [:informal])[0] || {})[:name]
|
|
17
|
+
|
|
18
|
+
assert_equal "Easter Monday", (Holidays.on(Date.civil(2007, 4, 9), [:nz], [:informal])[0] || {})[:name]
|
|
19
|
+
|
|
20
|
+
assert_equal "ANZAC Day", (Holidays.on(Date.civil(2007, 4, 25), [:nz], [:informal])[0] || {})[:name]
|
|
21
|
+
|
|
22
|
+
assert_equal "Christmas Day", (Holidays.on(Date.civil(2007, 12, 25), [:nz], [:informal])[0] || {})[:name]
|
|
23
|
+
|
|
24
|
+
assert_equal "Boxing Day", (Holidays.on(Date.civil(2007, 12, 26), [:nz], [:informal])[0] || {})[:name]
|
|
25
|
+
|
|
26
|
+
assert_equal "ANZAC Day", (Holidays.on(Date.civil(2015, 4, 25), [:nz])[0] || {})[:name]
|
|
27
|
+
|
|
28
|
+
assert_equal "ANZAC Day", (Holidays.on(Date.civil(2015, 4, 27), [:nz], [:observed])[0] || {})[:name]
|
|
29
|
+
|
|
30
|
+
assert_equal "ANZAC Day", (Holidays.on(Date.civil(2016, 4, 25), [:nz])[0] || {})[:name]
|
|
31
|
+
|
|
32
|
+
assert_equal "ANZAC Day", (Holidays.on(Date.civil(2016, 4, 25), [:nz], [:observed])[0] || {})[:name]
|
|
33
|
+
|
|
34
|
+
assert_equal "Waitangi Day", (Holidays.on(Date.civil(2015, 2, 6), [:nz])[0] || {})[:name]
|
|
35
|
+
|
|
36
|
+
assert_equal "Waitangi Day", (Holidays.on(Date.civil(2015, 2, 6), [:nz], [:observed])[0] || {})[:name]
|
|
37
|
+
|
|
38
|
+
assert_equal "Waitangi Day", (Holidays.on(Date.civil(2016, 2, 6), [:nz])[0] || {})[:name]
|
|
39
|
+
|
|
40
|
+
assert_equal "Waitangi Day", (Holidays.on(Date.civil(2016, 2, 8), [:nz], [:observed])[0] || {})[:name]
|
|
41
|
+
|
|
42
|
+
assert_equal "Nelson Anniversary Day", (Holidays.on(Date.civil(2016, 2, 1), [:nz_ne], [:observed])[0] || {})[:name]
|
|
43
|
+
|
|
44
|
+
assert_equal "Nelson Anniversary Day", (Holidays.on(Date.civil(2017, 1, 30), [:nz_ne], [:observed])[0] || {})[:name]
|
|
45
|
+
|
|
46
|
+
assert_equal "Nelson Anniversary Day", (Holidays.on(Date.civil(2018, 1, 29), [:nz_ne], [:observed])[0] || {})[:name]
|
|
47
|
+
|
|
48
|
+
assert_equal "Nelson Anniversary Day", (Holidays.on(Date.civil(2019, 2, 4), [:nz_ne], [:observed])[0] || {})[:name]
|
|
49
|
+
|
|
50
|
+
assert_equal "Taranaki Anniversary Day", (Holidays.on(Date.civil(2016, 3, 14), [:nz_ta], [:observed])[0] || {})[:name]
|
|
51
|
+
|
|
52
|
+
assert_equal "Taranaki Anniversary Day", (Holidays.on(Date.civil(2017, 3, 13), [:nz_ta], [:observed])[0] || {})[:name]
|
|
53
|
+
|
|
54
|
+
assert_equal "Taranaki Anniversary Day", (Holidays.on(Date.civil(2018, 3, 12), [:nz_ta], [:observed])[0] || {})[:name]
|
|
55
|
+
|
|
56
|
+
assert_equal "Taranaki Anniversary Day", (Holidays.on(Date.civil(2019, 3, 11), [:nz_ta], [:observed])[0] || {})[:name]
|
|
38
57
|
|
|
39
58
|
end
|
|
40
59
|
end
|
data/test/defs/test_defs_pe.rb
CHANGED
|
@@ -7,26 +7,41 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
|
|
|
7
7
|
class PeDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
8
|
|
|
9
9
|
def test_pe
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Date.civil(2016,
|
|
13
|
-
|
|
14
|
-
Date.civil(2016,3,
|
|
15
|
-
|
|
16
|
-
Date.civil(2016,
|
|
17
|
-
|
|
18
|
-
Date.civil(2016,
|
|
19
|
-
|
|
20
|
-
Date.civil(2016,
|
|
21
|
-
|
|
22
|
-
Date.civil(2016,8,
|
|
23
|
-
|
|
24
|
-
Date.civil(2016,
|
|
25
|
-
|
|
26
|
-
Date.civil(2016,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
10
|
+
assert_equal "Año Nuevo", (Holidays.on(Date.civil(2016, 1, 1), [:pe], [:informal])[0] || {})[:name]
|
|
11
|
+
|
|
12
|
+
assert_equal "Día de los Reyes Magos", (Holidays.on(Date.civil(2016, 1, 6), [:pe], [:informal])[0] || {})[:name]
|
|
13
|
+
|
|
14
|
+
assert_equal "Jueves Santo", (Holidays.on(Date.civil(2016, 3, 24), [:pe], [:informal])[0] || {})[:name]
|
|
15
|
+
|
|
16
|
+
assert_equal "Viernes Santo", (Holidays.on(Date.civil(2016, 3, 25), [:pe], [:informal])[0] || {})[:name]
|
|
17
|
+
|
|
18
|
+
assert_equal "Pascua", (Holidays.on(Date.civil(2016, 3, 27), [:pe], [:informal])[0] || {})[:name]
|
|
19
|
+
|
|
20
|
+
assert_equal "Día del Trabajador", (Holidays.on(Date.civil(2016, 5, 1), [:pe], [:informal])[0] || {})[:name]
|
|
21
|
+
|
|
22
|
+
assert_equal "Día de la Madre", (Holidays.on(Date.civil(2016, 5, 8), [:pe], [:informal])[0] || {})[:name]
|
|
23
|
+
|
|
24
|
+
assert_equal "Día de la Bandera", (Holidays.on(Date.civil(2016, 6, 7), [:pe], [:informal])[0] || {})[:name]
|
|
25
|
+
|
|
26
|
+
assert_equal "Día del Padre", (Holidays.on(Date.civil(2016, 6, 19), [:pe], [:informal])[0] || {})[:name]
|
|
27
|
+
|
|
28
|
+
assert_equal "San Pablo y San Pedro", (Holidays.on(Date.civil(2016, 6, 29), [:pe], [:informal])[0] || {})[:name]
|
|
29
|
+
|
|
30
|
+
assert_equal "Primer Día de la Independencia", (Holidays.on(Date.civil(2016, 7, 28), [:pe], [:informal])[0] || {})[:name]
|
|
31
|
+
|
|
32
|
+
assert_equal "Segundo Día de la Independencia", (Holidays.on(Date.civil(2016, 7, 29), [:pe], [:informal])[0] || {})[:name]
|
|
33
|
+
|
|
34
|
+
assert_equal "Santa Rosa de Lima", (Holidays.on(Date.civil(2016, 8, 30), [:pe], [:informal])[0] || {})[:name]
|
|
35
|
+
|
|
36
|
+
assert_equal "Día de las Fuerzas Armadas", (Holidays.on(Date.civil(2016, 9, 24), [:pe], [:informal])[0] || {})[:name]
|
|
37
|
+
|
|
38
|
+
assert_equal "Batalla de Angamos", (Holidays.on(Date.civil(2016, 10, 8), [:pe], [:informal])[0] || {})[:name]
|
|
39
|
+
|
|
40
|
+
assert_equal "Todos los Santos", (Holidays.on(Date.civil(2016, 11, 1), [:pe], [:informal])[0] || {})[:name]
|
|
41
|
+
|
|
42
|
+
assert_equal "Inmaculada Concepción", (Holidays.on(Date.civil(2016, 12, 8), [:pe], [:informal])[0] || {})[:name]
|
|
43
|
+
|
|
44
|
+
assert_equal "Navidad del Señor", (Holidays.on(Date.civil(2016, 12, 25), [:pe], [:informal])[0] || {})[:name]
|
|
30
45
|
|
|
31
46
|
end
|
|
32
47
|
end
|
data/test/defs/test_defs_ph.rb
CHANGED
|
@@ -7,17 +7,23 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
|
|
|
7
7
|
class PhDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
8
|
|
|
9
9
|
def test_ph
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Date.civil(2015,
|
|
13
|
-
|
|
14
|
-
Date.civil(2015,
|
|
15
|
-
|
|
16
|
-
Date.civil(2015,
|
|
17
|
-
|
|
18
|
-
Date.civil(2015,
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
assert_equal "Good Friday", (Holidays.on(Date.civil(2015, 4, 3), [:ph])[0] || {})[:name]
|
|
11
|
+
|
|
12
|
+
assert_equal "The Day of Valor", (Holidays.on(Date.civil(2015, 4, 9), [:ph])[0] || {})[:name]
|
|
13
|
+
|
|
14
|
+
assert_equal "Labor Day", (Holidays.on(Date.civil(2015, 5, 1), [:ph])[0] || {})[:name]
|
|
15
|
+
|
|
16
|
+
assert_equal "Independence Day", (Holidays.on(Date.civil(2015, 6, 12), [:ph])[0] || {})[:name]
|
|
17
|
+
|
|
18
|
+
assert_equal "Ninoy Aquino Day", (Holidays.on(Date.civil(2015, 8, 21), [:ph])[0] || {})[:name]
|
|
19
|
+
|
|
20
|
+
assert_equal "National Heroes Day", (Holidays.on(Date.civil(2015, 8, 31), [:ph])[0] || {})[:name]
|
|
21
|
+
|
|
22
|
+
assert_equal "Bonifacio Day", (Holidays.on(Date.civil(2015, 11, 30), [:ph])[0] || {})[:name]
|
|
23
|
+
|
|
24
|
+
assert_equal "Christmas Day", (Holidays.on(Date.civil(2015, 12, 25), [:ph])[0] || {})[:name]
|
|
25
|
+
|
|
26
|
+
assert_equal "Rizal Day", (Holidays.on(Date.civil(2015, 12, 30), [:ph])[0] || {})[:name]
|
|
21
27
|
|
|
22
28
|
end
|
|
23
29
|
end
|
data/test/defs/test_defs_pl.rb
CHANGED
|
@@ -7,140 +7,221 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
|
|
|
7
7
|
class PlDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
8
8
|
|
|
9
9
|
def test_pl
|
|
10
|
-
|
|
11
|
-
Date.civil(2011,5,1) => 'Święto Państwowe (Święto Pracy)',
|
|
12
|
-
Date.civil(2011,5,3) => 'Święto Narodowe Trzeciego Maja',
|
|
13
|
-
Date.civil(2011,11,1) => 'Wszystkich Świętych',
|
|
14
|
-
Date.civil(2011,11,11) => 'Narodowe Święto Niepodległości',
|
|
15
|
-
Date.civil(2011,12,25) => 'pierwszy dzień Bożego Narodzenia',
|
|
16
|
-
Date.civil(2011,12,26) => 'drugi dzień Bożego Narodzenia'}.each do |date, name|
|
|
17
|
-
assert_equal name, (Holidays.on(date, :pl)[0] || {})[:name]
|
|
18
|
-
end
|
|
10
|
+
assert_equal "Nowy Rok", (Holidays.on(Date.civil(2011, 1, 1), [:pl])[0] || {})[:name]
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
{Date.civil(2011,1,21) => 'Dzień Babci',
|
|
22
|
-
Date.civil(2011,1,22) => 'Dzień Dziadka',
|
|
23
|
-
Date.civil(2011,2,2) => 'Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)',
|
|
24
|
-
Date.civil(2011,2,14) => 'Dzień Zakochanych (Walentynki)',
|
|
25
|
-
Date.civil(2010,3,8) => 'Dzień Kobiet',
|
|
26
|
-
Date.civil(2011,3,10) => 'Dzień Mężczyzn',
|
|
27
|
-
Date.civil(2011,4,1) => 'Prima Aprilis',
|
|
28
|
-
Date.civil(2010,4,22) => 'Międzynarodowy Dzień Ziemi',
|
|
29
|
-
Date.civil(2011,5,2) => 'Dzień Flagi Rzeczpospolitej Polskiej',
|
|
30
|
-
Date.civil(2010,6,23) => 'Dzień Ojca',
|
|
31
|
-
Date.civil(2011,9,30) => 'Dzień Chłopaka',
|
|
32
|
-
Date.civil(2011,10,14) => 'Dzień Nauczyciela (Dzień Edukacji Narodowej)',
|
|
33
|
-
Date.civil(2011,11,2) => 'Dzień Zaduszny',
|
|
34
|
-
Date.civil(2011,11,29) => 'Andrzejki',
|
|
35
|
-
Date.civil(2011,12,4) => 'Barbórka (Dzień Górnika, Naftowca i Gazownika)',
|
|
36
|
-
Date.civil(2011,12,6) => 'Mikołajki',
|
|
37
|
-
Date.civil(2011,12,24) => 'Wigilia Bożego Narodzenia',
|
|
38
|
-
Date.civil(2011,12,31) => 'Sylwester'}.each do |date, name|
|
|
39
|
-
assert_equal name, (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
40
|
-
end
|
|
12
|
+
assert_equal "Święto Państwowe (Święto Pracy)", (Holidays.on(Date.civil(2011, 5, 1), [:pl])[0] || {})[:name]
|
|
41
13
|
|
|
42
|
-
|
|
43
|
-
{Date.civil(2011,1,21) => 'Dzień Babci',
|
|
44
|
-
Date.civil(2011,1,22) => 'Dzień Dziadka',
|
|
45
|
-
Date.civil(2011,2,2) => 'Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)',
|
|
46
|
-
Date.civil(2011,2,14) => 'Dzień Zakochanych (Walentynki)',
|
|
47
|
-
Date.civil(2010,3,8) => 'Dzień Kobiet',
|
|
48
|
-
Date.civil(2011,3,10) => 'Dzień Mężczyzn',
|
|
49
|
-
Date.civil(2011,4,1) => 'Prima Aprilis',
|
|
50
|
-
Date.civil(2010,4,22) => 'Międzynarodowy Dzień Ziemi',
|
|
51
|
-
Date.civil(2011,5,2) => 'Dzień Flagi Rzeczpospolitej Polskiej',
|
|
52
|
-
Date.civil(2010,6,23) => 'Dzień Ojca',
|
|
53
|
-
Date.civil(2011,9,30) => 'Dzień Chłopaka',
|
|
54
|
-
Date.civil(2011,10,14) => 'Dzień Nauczyciela (Dzień Edukacji Narodowej)',
|
|
55
|
-
Date.civil(2011,11,2) => 'Dzień Zaduszny',
|
|
56
|
-
Date.civil(2011,11,29) => 'Andrzejki',
|
|
57
|
-
Date.civil(2011,12,4) => 'Barbórka (Dzień Górnika, Naftowca i Gazownika)',
|
|
58
|
-
Date.civil(2011,12,6) => 'Mikołajki',
|
|
59
|
-
Date.civil(2011,12,24) => 'Wigilia Bożego Narodzenia',
|
|
60
|
-
Date.civil(2011,12,31) => 'Sylwester'}.each do |date, name|
|
|
61
|
-
assert_equal nil, (Holidays.on(date, :pl)[0] || {})[:name]
|
|
62
|
-
end
|
|
14
|
+
assert_equal "Święto Narodowe Trzeciego Maja", (Holidays.on(Date.civil(2011, 5, 3), [:pl])[0] || {})[:name]
|
|
63
15
|
|
|
64
|
-
|
|
65
|
-
[Date.civil(2008,1,6), Date.civil(2009,1,6), Date.civil(2010,1,6)].each do |date|
|
|
66
|
-
assert_equal nil, (Holidays.on(date, :pl)[0] || {})[:name]
|
|
67
|
-
end
|
|
68
|
-
[Date.civil(2008,1,6), Date.civil(2009,1,6), Date.civil(2010,1,6)].each do |date|
|
|
69
|
-
assert_equal 'Objawienie Pańskie (święto Trzech Króli)', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
70
|
-
end
|
|
71
|
-
[Date.civil(2011,1,6), Date.civil(2012,1,6), Date.civil(2013,1,6)].each do |date|
|
|
72
|
-
assert_equal 'Objawienie Pańskie (święto Trzech Króli)', (Holidays.on(date, :pl)[0] || {})[:name]
|
|
73
|
-
end
|
|
16
|
+
assert_equal "Wszystkich Świętych", (Holidays.on(Date.civil(2011, 11, 1), [:pl])[0] || {})[:name]
|
|
74
17
|
|
|
75
|
-
|
|
76
|
-
[Date.civil(2008,1,31), Date.civil(2009,2,19), Date.civil(2010,2,11),
|
|
77
|
-
Date.civil(2011,3,3), Date.civil(2012,2,16)].each do |date|
|
|
78
|
-
assert_equal 'Tłusty Czwartek', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
79
|
-
end
|
|
18
|
+
assert_equal "Narodowe Święto Niepodległości", (Holidays.on(Date.civil(2011, 11, 11), [:pl])[0] || {})[:name]
|
|
80
19
|
|
|
81
|
-
|
|
82
|
-
[Date.civil(2008,2,5), Date.civil(2009,2,24), Date.civil(2010,2,16),
|
|
83
|
-
Date.civil(2011,3,8), Date.civil(2012,2,21)].each do |date|
|
|
84
|
-
assert_equal 'Ostatki', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
85
|
-
end
|
|
20
|
+
assert_equal "pierwszy dzień Bożego Narodzenia", (Holidays.on(Date.civil(2011, 12, 25), [:pl])[0] || {})[:name]
|
|
86
21
|
|
|
87
|
-
|
|
88
|
-
[Date.civil(2008,2,6), Date.civil(2009,2,25), Date.civil(2010,2,17),
|
|
89
|
-
Date.civil(2011,3,9), Date.civil(2012,2,22)].each do |date|
|
|
90
|
-
assert_equal 'Środa Popielcowa', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
91
|
-
end
|
|
22
|
+
assert_equal "drugi dzień Bożego Narodzenia", (Holidays.on(Date.civil(2011, 12, 26), [:pl])[0] || {})[:name]
|
|
92
23
|
|
|
93
|
-
|
|
94
|
-
[Date.civil(2008,3,16), Date.civil(2009,4,5), Date.civil(2010,3,28),
|
|
95
|
-
Date.civil(2011,4,17), Date.civil(2012,4,1)].each do |date|
|
|
96
|
-
assert_equal 'Niedziela Palmowa', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
97
|
-
end
|
|
24
|
+
assert_equal "Dzień Babci", (Holidays.on(Date.civil(2011, 1, 21), [:pl], [:informal])[0] || {})[:name]
|
|
98
25
|
|
|
99
|
-
|
|
100
|
-
[Date.civil(2008,3,20), Date.civil(2009,4,9), Date.civil(2010,4,1),
|
|
101
|
-
Date.civil(2011,4,21), Date.civil(2012,4,5)].each do |date|
|
|
102
|
-
assert_equal 'Wielki Czwartek', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
103
|
-
end
|
|
26
|
+
assert_equal "Dzień Dziadka", (Holidays.on(Date.civil(2011, 1, 22), [:pl], [:informal])[0] || {})[:name]
|
|
104
27
|
|
|
105
|
-
|
|
106
|
-
[Date.civil(2008,3,21), Date.civil(2009,4,10), Date.civil(2010,4,2),
|
|
107
|
-
Date.civil(2011,4,22), Date.civil(2012,4,6)].each do |date|
|
|
108
|
-
assert_equal 'Wielki Piątek', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
109
|
-
end
|
|
28
|
+
assert_equal "Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)", (Holidays.on(Date.civil(2011, 2, 2), [:pl], [:informal])[0] || {})[:name]
|
|
110
29
|
|
|
111
|
-
|
|
112
|
-
[Date.civil(2008,3,22), Date.civil(2009,4,11), Date.civil(2010,4,3),
|
|
113
|
-
Date.civil(2011,4,23), Date.civil(2012,4,7)].each do |date|
|
|
114
|
-
assert_equal 'Wielka Sobota', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
|
|
115
|
-
end
|
|
30
|
+
assert_equal "Dzień Zakochanych (Walentynki)", (Holidays.on(Date.civil(2011, 2, 14), [:pl], [:informal])[0] || {})[:name]
|
|
116
31
|
|
|
117
|
-
|
|
118
|
-
[Date.civil(2008,3,23), Date.civil(2009,4,12), Date.civil(2010,4,4),
|
|
119
|
-
Date.civil(2011,4,24), Date.civil(2012,4,8)].each do |date|
|
|
120
|
-
assert_equal 'Niedziela Wielkanocna', (Holidays.on(date, :pl)[0] || {})[:name]
|
|
121
|
-
end
|
|
32
|
+
assert_equal "Dzień Kobiet", (Holidays.on(Date.civil(2010, 3, 8), [:pl], [:informal])[0] || {})[:name]
|
|
122
33
|
|
|
123
|
-
|
|
124
|
-
[Date.civil(2008,3,24), Date.civil(2009,4,13), Date.civil(2010,4,5),
|
|
125
|
-
Date.civil(2011,4,25), Date.civil(2012,4,9)].each do |date|
|
|
126
|
-
assert_equal 'Poniedziałek Wielkanocny (Lany Poniedziałek)', (Holidays.on(date, :pl)[0] || {})[:name]
|
|
127
|
-
end
|
|
34
|
+
assert_equal "Dzień Mężczyzn", (Holidays.on(Date.civil(2011, 3, 10), [:pl], [:informal])[0] || {})[:name]
|
|
128
35
|
|
|
129
|
-
|
|
130
|
-
[Date.civil(2008,5,11), Date.civil(2009,5,31), Date.civil(2010,5,23),
|
|
131
|
-
Date.civil(2011,6,12), Date.civil(2012,5,27)].each do |date|
|
|
132
|
-
assert_equal 'Zesłanie Ducha Świętego (Zielone Świątki)', (Holidays.on(date, :pl)[0] || {})[:name]
|
|
133
|
-
end
|
|
36
|
+
assert_equal "Prima Aprilis", (Holidays.on(Date.civil(2011, 4, 1), [:pl], [:informal])[0] || {})[:name]
|
|
134
37
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
Date.civil(2011,
|
|
138
|
-
|
|
139
|
-
|
|
38
|
+
assert_equal "Międzynarodowy Dzień Ziemi", (Holidays.on(Date.civil(2010, 4, 22), [:pl], [:informal])[0] || {})[:name]
|
|
39
|
+
|
|
40
|
+
assert_equal "Dzień Flagi Rzeczpospolitej Polskiej", (Holidays.on(Date.civil(2011, 5, 2), [:pl], [:informal])[0] || {})[:name]
|
|
41
|
+
|
|
42
|
+
assert_equal "Dzień Ojca", (Holidays.on(Date.civil(2010, 6, 23), [:pl], [:informal])[0] || {})[:name]
|
|
43
|
+
|
|
44
|
+
assert_equal "Dzień Chłopaka", (Holidays.on(Date.civil(2011, 9, 30), [:pl], [:informal])[0] || {})[:name]
|
|
45
|
+
|
|
46
|
+
assert_equal "Dzień Nauczyciela (Dzień Edukacji Narodowej)", (Holidays.on(Date.civil(2011, 10, 14), [:pl], [:informal])[0] || {})[:name]
|
|
47
|
+
|
|
48
|
+
assert_equal "Dzień Zaduszny", (Holidays.on(Date.civil(2011, 11, 2), [:pl], [:informal])[0] || {})[:name]
|
|
49
|
+
|
|
50
|
+
assert_equal "Andrzejki", (Holidays.on(Date.civil(2011, 11, 29), [:pl], [:informal])[0] || {})[:name]
|
|
51
|
+
|
|
52
|
+
assert_equal "Barbórka (Dzień Górnika, Naftowca i Gazownika)", (Holidays.on(Date.civil(2011, 12, 4), [:pl], [:informal])[0] || {})[:name]
|
|
53
|
+
|
|
54
|
+
assert_equal "Mikołajki", (Holidays.on(Date.civil(2011, 12, 6), [:pl], [:informal])[0] || {})[:name]
|
|
55
|
+
|
|
56
|
+
assert_equal "Wigilia Bożego Narodzenia", (Holidays.on(Date.civil(2011, 12, 24), [:pl], [:informal])[0] || {})[:name]
|
|
57
|
+
|
|
58
|
+
assert_equal "Sylwester", (Holidays.on(Date.civil(2011, 12, 31), [:pl], [:informal])[0] || {})[:name]
|
|
59
|
+
|
|
60
|
+
assert_nil (Holidays.on(Date.civil(2011, 1, 21), [:pl])[0] || {})[:name]
|
|
61
|
+
|
|
62
|
+
assert_nil (Holidays.on(Date.civil(2011, 1, 22), [:pl])[0] || {})[:name]
|
|
63
|
+
|
|
64
|
+
assert_nil (Holidays.on(Date.civil(2011, 2, 2), [:pl])[0] || {})[:name]
|
|
65
|
+
|
|
66
|
+
assert_nil (Holidays.on(Date.civil(2011, 2, 14), [:pl])[0] || {})[:name]
|
|
67
|
+
|
|
68
|
+
assert_nil (Holidays.on(Date.civil(2010, 3, 8), [:pl])[0] || {})[:name]
|
|
69
|
+
|
|
70
|
+
assert_nil (Holidays.on(Date.civil(2011, 3, 10), [:pl])[0] || {})[:name]
|
|
71
|
+
|
|
72
|
+
assert_nil (Holidays.on(Date.civil(2011, 4, 1), [:pl])[0] || {})[:name]
|
|
73
|
+
|
|
74
|
+
assert_nil (Holidays.on(Date.civil(2010, 4, 22), [:pl])[0] || {})[:name]
|
|
75
|
+
|
|
76
|
+
assert_nil (Holidays.on(Date.civil(2011, 5, 2), [:pl])[0] || {})[:name]
|
|
77
|
+
|
|
78
|
+
assert_nil (Holidays.on(Date.civil(2010, 6, 23), [:pl])[0] || {})[:name]
|
|
79
|
+
|
|
80
|
+
assert_nil (Holidays.on(Date.civil(2011, 9, 30), [:pl])[0] || {})[:name]
|
|
81
|
+
|
|
82
|
+
assert_nil (Holidays.on(Date.civil(2011, 10, 14), [:pl])[0] || {})[:name]
|
|
83
|
+
|
|
84
|
+
assert_nil (Holidays.on(Date.civil(2011, 11, 2), [:pl])[0] || {})[:name]
|
|
85
|
+
|
|
86
|
+
assert_nil (Holidays.on(Date.civil(2011, 11, 29), [:pl])[0] || {})[:name]
|
|
87
|
+
|
|
88
|
+
assert_nil (Holidays.on(Date.civil(2011, 12, 4), [:pl])[0] || {})[:name]
|
|
89
|
+
|
|
90
|
+
assert_nil (Holidays.on(Date.civil(2011, 12, 6), [:pl])[0] || {})[:name]
|
|
91
|
+
|
|
92
|
+
assert_nil (Holidays.on(Date.civil(2011, 12, 24), [:pl])[0] || {})[:name]
|
|
93
|
+
|
|
94
|
+
assert_nil (Holidays.on(Date.civil(2011, 12, 31), [:pl])[0] || {})[:name]
|
|
95
|
+
|
|
96
|
+
assert_nil (Holidays.on(Date.civil(2008, 1, 6), [:pl])[0] || {})[:name]
|
|
97
|
+
|
|
98
|
+
assert_nil (Holidays.on(Date.civil(2009, 1, 6), [:pl])[0] || {})[:name]
|
|
99
|
+
|
|
100
|
+
assert_nil (Holidays.on(Date.civil(2010, 1, 6), [:pl])[0] || {})[:name]
|
|
101
|
+
|
|
102
|
+
assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2008, 1, 6), [:pl], [:informal])[0] || {})[:name]
|
|
103
|
+
|
|
104
|
+
assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2009, 1, 6), [:pl], [:informal])[0] || {})[:name]
|
|
105
|
+
|
|
106
|
+
assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2010, 1, 6), [:pl], [:informal])[0] || {})[:name]
|
|
107
|
+
|
|
108
|
+
assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2011, 1, 6), [:pl])[0] || {})[:name]
|
|
109
|
+
|
|
110
|
+
assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2012, 1, 6), [:pl])[0] || {})[:name]
|
|
111
|
+
|
|
112
|
+
assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2013, 1, 6), [:pl])[0] || {})[:name]
|
|
113
|
+
|
|
114
|
+
assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2008, 1, 31), [:pl], [:informal])[0] || {})[:name]
|
|
115
|
+
|
|
116
|
+
assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2009, 2, 19), [:pl], [:informal])[0] || {})[:name]
|
|
117
|
+
|
|
118
|
+
assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2010, 2, 11), [:pl], [:informal])[0] || {})[:name]
|
|
119
|
+
|
|
120
|
+
assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2011, 3, 3), [:pl], [:informal])[0] || {})[:name]
|
|
121
|
+
|
|
122
|
+
assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2012, 2, 16), [:pl], [:informal])[0] || {})[:name]
|
|
123
|
+
|
|
124
|
+
assert_equal "Ostatki", (Holidays.on(Date.civil(2008, 2, 5), [:pl], [:informal])[0] || {})[:name]
|
|
125
|
+
|
|
126
|
+
assert_equal "Ostatki", (Holidays.on(Date.civil(2009, 2, 24), [:pl], [:informal])[0] || {})[:name]
|
|
127
|
+
|
|
128
|
+
assert_equal "Ostatki", (Holidays.on(Date.civil(2010, 2, 16), [:pl], [:informal])[0] || {})[:name]
|
|
129
|
+
|
|
130
|
+
assert_equal "Ostatki", (Holidays.on(Date.civil(2011, 3, 8), [:pl], [:informal])[0] || {})[:name]
|
|
131
|
+
|
|
132
|
+
assert_equal "Ostatki", (Holidays.on(Date.civil(2012, 2, 21), [:pl], [:informal])[0] || {})[:name]
|
|
133
|
+
|
|
134
|
+
assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2008, 2, 6), [:pl], [:informal])[0] || {})[:name]
|
|
135
|
+
|
|
136
|
+
assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2009, 2, 25), [:pl], [:informal])[0] || {})[:name]
|
|
137
|
+
|
|
138
|
+
assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2010, 2, 17), [:pl], [:informal])[0] || {})[:name]
|
|
139
|
+
|
|
140
|
+
assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2011, 3, 9), [:pl], [:informal])[0] || {})[:name]
|
|
141
|
+
|
|
142
|
+
assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2012, 2, 22), [:pl], [:informal])[0] || {})[:name]
|
|
143
|
+
|
|
144
|
+
assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2008, 3, 16), [:pl], [:informal])[0] || {})[:name]
|
|
145
|
+
|
|
146
|
+
assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2009, 4, 5), [:pl], [:informal])[0] || {})[:name]
|
|
147
|
+
|
|
148
|
+
assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2010, 3, 28), [:pl], [:informal])[0] || {})[:name]
|
|
149
|
+
|
|
150
|
+
assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2011, 4, 17), [:pl], [:informal])[0] || {})[:name]
|
|
151
|
+
|
|
152
|
+
assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2012, 4, 1), [:pl], [:informal])[0] || {})[:name]
|
|
153
|
+
|
|
154
|
+
assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2008, 3, 20), [:pl], [:informal])[0] || {})[:name]
|
|
155
|
+
|
|
156
|
+
assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2009, 4, 9), [:pl], [:informal])[0] || {})[:name]
|
|
157
|
+
|
|
158
|
+
assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2010, 4, 1), [:pl], [:informal])[0] || {})[:name]
|
|
159
|
+
|
|
160
|
+
assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2011, 4, 21), [:pl], [:informal])[0] || {})[:name]
|
|
161
|
+
|
|
162
|
+
assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2012, 4, 5), [:pl], [:informal])[0] || {})[:name]
|
|
163
|
+
|
|
164
|
+
assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2008, 3, 21), [:pl], [:informal])[0] || {})[:name]
|
|
165
|
+
|
|
166
|
+
assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2009, 4, 10), [:pl], [:informal])[0] || {})[:name]
|
|
167
|
+
|
|
168
|
+
assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2010, 4, 2), [:pl], [:informal])[0] || {})[:name]
|
|
169
|
+
|
|
170
|
+
assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2011, 4, 22), [:pl], [:informal])[0] || {})[:name]
|
|
171
|
+
|
|
172
|
+
assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2012, 4, 6), [:pl], [:informal])[0] || {})[:name]
|
|
173
|
+
|
|
174
|
+
assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2008, 3, 22), [:pl], [:informal])[0] || {})[:name]
|
|
175
|
+
|
|
176
|
+
assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2009, 4, 11), [:pl], [:informal])[0] || {})[:name]
|
|
177
|
+
|
|
178
|
+
assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2010, 4, 3), [:pl], [:informal])[0] || {})[:name]
|
|
179
|
+
|
|
180
|
+
assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2011, 4, 23), [:pl], [:informal])[0] || {})[:name]
|
|
181
|
+
|
|
182
|
+
assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2012, 4, 7), [:pl], [:informal])[0] || {})[:name]
|
|
183
|
+
|
|
184
|
+
assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2008, 3, 23), [:pl])[0] || {})[:name]
|
|
185
|
+
|
|
186
|
+
assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2009, 4, 12), [:pl])[0] || {})[:name]
|
|
187
|
+
|
|
188
|
+
assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2010, 4, 4), [:pl])[0] || {})[:name]
|
|
189
|
+
|
|
190
|
+
assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2011, 4, 24), [:pl])[0] || {})[:name]
|
|
191
|
+
|
|
192
|
+
assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2012, 4, 8), [:pl])[0] || {})[:name]
|
|
193
|
+
|
|
194
|
+
assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2008, 3, 24), [:pl])[0] || {})[:name]
|
|
195
|
+
|
|
196
|
+
assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2009, 4, 13), [:pl])[0] || {})[:name]
|
|
197
|
+
|
|
198
|
+
assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2010, 4, 5), [:pl])[0] || {})[:name]
|
|
199
|
+
|
|
200
|
+
assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2011, 4, 25), [:pl])[0] || {})[:name]
|
|
201
|
+
|
|
202
|
+
assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2012, 4, 9), [:pl])[0] || {})[:name]
|
|
203
|
+
|
|
204
|
+
assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2008, 5, 11), [:pl])[0] || {})[:name]
|
|
205
|
+
|
|
206
|
+
assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2009, 5, 31), [:pl])[0] || {})[:name]
|
|
207
|
+
|
|
208
|
+
assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2010, 5, 23), [:pl])[0] || {})[:name]
|
|
209
|
+
|
|
210
|
+
assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2011, 6, 12), [:pl])[0] || {})[:name]
|
|
211
|
+
|
|
212
|
+
assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2012, 5, 27), [:pl])[0] || {})[:name]
|
|
213
|
+
|
|
214
|
+
assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2008, 5, 22), [:pl])[0] || {})[:name]
|
|
215
|
+
|
|
216
|
+
assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2009, 6, 11), [:pl])[0] || {})[:name]
|
|
217
|
+
|
|
218
|
+
assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2010, 6, 3), [:pl])[0] || {})[:name]
|
|
219
|
+
|
|
220
|
+
assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2011, 6, 23), [:pl])[0] || {})[:name]
|
|
221
|
+
|
|
222
|
+
assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2012, 6, 7), [:pl])[0] || {})[:name]
|
|
140
223
|
|
|
141
|
-
|
|
142
|
-
assert_equal 'Wniebowzięcie Najświętszej Maryi Panny', (Holidays.on(Date.civil(2011,8,15), :pl)[0] || {})[:name]
|
|
143
|
-
assert_equal 'Święto Wojska Polskiego', (Holidays.on(Date.civil(2011,8,15), :pl)[1] || {})[:name]
|
|
224
|
+
assert_equal "Wniebowzięcie Najświętszej Maryi Panny", (Holidays.on(Date.civil(2011, 8, 15), [:pl])[0] || {})[:name]
|
|
144
225
|
|
|
145
226
|
end
|
|
146
227
|
end
|