We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78ef96 commit 3f612a7Copy full SHA for 3f612a7
test/cff_entity_test.rb
@@ -71,6 +71,20 @@ def test_date_fields_set_and_output_correctly
71
assert y.include? "date-start: #{date.to_s}\n"
72
end
73
74
+ def test_date_fields_set_and_output_correctly_with_text
75
+ date = "1999-12-31"
76
+ @entity.date_end = date
77
+ @entity.date_start = date
78
+
79
+ assert_equal @entity.date_end, Date.parse(date)
80
+ assert_equal @entity.date_start, Date.parse(date)
81
82
+ y = @entity.fields.to_yaml
83
84
+ assert y.include? "date-end: #{date}\n"
85
+ assert y.include? "date-start: #{date}\n"
86
+ end
87
88
def test_tel_fax_fields_set_and_output_correctly
89
number = "+44 (0) 161-234-5678"
90
@entity.fax = number
0 commit comments