Sha256: 1c6f57b9121b51b929fe1874e31012c8af710ce88fe7cb1b4776dc7f9826a42d
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
#==============================================================================# # $Id: test_date.rb 27 2007-08-15 14:35:31Z yuyakato $ #==============================================================================# require File.dirname(__FILE__) + "/test_helper.rb" require File.dirname(__FILE__) + "/../lib/kagemusha/date" #==============================================================================# class TestKagemushaDate < Test::Unit::TestCase def setup end def test_on musha1 = Kagemusha::Date.on(2007, 1, 2) assert_equal(Date, musha1.instance_eval { @klass }) musha1.swap { assert_equal(Date.new(2007, 1, 2), Date.today) } musha2 = Kagemusha::Date.on(Date.new(1984, 5, 11)) musha2.swap { assert_equal(Date.new(1984, 5, 11), Date.today) } assert_raise(ArgumentError) { Kagemusha::Date.on(:symbol) } end end #==============================================================================# #==============================================================================#
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kagemusha-0.0.1 | test/test_date.rb |