lib/cucumber/formatter/json.rb in cucumber-2.2.0 vs lib/cucumber/formatter/json.rb in cucumber-2.3.0
- old
+ new
@@ -155,12 +155,13 @@
step_hash[:doc_string] = create_doc_string_hash(step_source.multiline_arg) if step_source.multiline_arg.doc_string?
step_hash
end
def create_doc_string_hash(doc_string)
+ content_type = doc_string.content_type ? doc_string.content_type : ""
{
value: doc_string.content,
- content_type: doc_string.content_type,
+ content_type: content_type,
line: doc_string.location.line
}
end
def add_match_and_result(test_step, result)