Project

General

Profile

Backport #5270 ยป date-once-testcase.rb

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

 
1
require 'test/unit'
2

    
3
class DateOnceFrozenTestCase < Test::Unit::TestCase
4

    
5
  def test_date_freeze_should_still_allow_memoization
6
    require 'date'
7
    foo = Date.new
8
    foo.freeze
9
    foo.year
10
  end
11

    
12
end