Project

General

Profile

Backport #5270 » date-once-testcase.rb

ddfreyne (Denis Defreyne), 09/03/2011 05:12 PM

 
require 'test/unit'

class DateOnceFrozenTestCase < Test::Unit::TestCase

def test_date_freeze_should_still_allow_memoization
require 'date'
foo = Date.new
foo.freeze
foo.year
end

end
(1-1/2)