Sha256: f914c93908bab2c8aed5529495664ced243ef66923805171ac05b534ce61062c
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
require 'helper' class TestHolidayJp < Test::Unit::TestCase should '#between return correct holidays' do holidays = HolidayJp.between(Date.new(2009, 1, 1), Date.new(2009, 1, 31)) assert_equal holidays[0].date, Date.new(2009, 1, 1) assert_equal holidays[0].name, '元日' assert_equal holidays[1].date, Date.new(2009, 1, 12) assert_equal holidays[1].name, '成人の日' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
holiday_jp-0.2.1 | test/test_holiday_jp.rb |
holiday_jp-0.2.0 | test/test_holiday_jp.rb |