test/edtf_humanize_test.rb in edtf-humanize-0.0.3 vs test/edtf_humanize_test.rb in edtf-humanize-0.0.4
- old
+ new
@@ -66,5 +66,13 @@
test "should return a humanized set string" do
d = Date.edtf('[1980, 1981, 1983]')
assert_equal "1980, 1981 or 1983", d.humanize
end
end
+
+class HumanizeUnknownTest < ActiveSupport::TestCase
+ test "should return a humanized unknown string" do
+ d = Date.edtf('uuuu')
+ assert_equal "unknown", d.humanize
+ end
+end
+