class DateExtBehaviorTest

Public Instance Methods

test_blank?() click to toggle source
# File activesupport/test/core_ext/date_ext_test.rb, line 400
def test_blank?
  assert_not Date.new.blank?
end
test_can_freeze_twice() click to toggle source
# File activesupport/test/core_ext/date_ext_test.rb, line 410
def test_can_freeze_twice
  assert_nothing_raised do
    Date.today.freeze.freeze
  end
end
test_date_acts_like_date() click to toggle source
# File activesupport/test/core_ext/date_ext_test.rb, line 396
def test_date_acts_like_date
  assert Date.new.acts_like_date?
end
test_freeze_doesnt_clobber_memoized_instance_methods() click to toggle source
# File activesupport/test/core_ext/date_ext_test.rb, line 404
def test_freeze_doesnt_clobber_memoized_instance_methods
  assert_nothing_raised do
    Date.today.freeze.inspect
  end
end