test/date_test.rb in brdata-2.1.6 vs test/date_test.rb in brdata-2.1.7

- old
+ new

@@ -24,9 +24,14 @@ #to_s_br def test_date_to_s_br assert_equal "13/12/2007", "13/12/2007".to_date.to_s_br end + #to_s_br when date is nil + def test_date_to_s_br_when_date_is_nil + assert_equal "", nil.to_s_br + end + #valid? def test_valid_when_date_format_is_traditional_and_valid_format_and_valid_civil assert Date.valid?("2007/01/02"), "Should be a valid date" end