spec/unit/defmastership/document_spec.rb in defmastership-1.2.0 vs spec/unit/defmastership/document_spec.rb in defmastership-1.3.0

- old
+ new

@@ -490,9 +490,26 @@ matchdata_including(summary: 'a summary with the substituted variable') ) ) end end + + context 'when comma in definition summary' do + let(:input_lines) do + [ + ':one_variable: the substituted variable', + '[define, requirement, TOTO-0001, " a summary with a, comma "]' + ] + end + + it do + expect(Defmastership::Definition).to( + have_received(:new).with( + matchdata_including(summary: 'a summary with a, comma') + ) + ) + end + end end context 'with invalid definitions' do context 'when definition in literal block' do let(:input_lines) do