File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ def format=(fmt)
393
393
# Sets the status of this Reference. The status is restricted to a
394
394
# [defined set of status types](https://citation-file-format.github.io/1.0.3/specifications/#/status-strings).
395
395
def status = ( status )
396
+ status . downcase!
396
397
@fields [ 'status' ] = status if REFERENCE_STATUS_TYPES . include? ( status )
397
398
end
398
399
Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ def test_status_restricted_to_allowed_types
83
83
@reference . status = "published"
84
84
refute_equal @reference . status , "published"
85
85
assert_equal @reference . status , "in-press"
86
+
87
+ @reference . status = "Pre-Print"
88
+ assert_equal @reference . status , "pre-print"
86
89
end
87
90
88
91
def test_languages_methods
You can’t perform that action at this time.
0 commit comments