# frozen_string_literal: true describe ChatBlock do it 'should create a basic chat block' do input = <<~INPUT [chat, foodogsquared] ==== Hello there! ==== INPUT expected = <<~RESULT
foodogsquared
foodogsquared

Hello there!

RESULT actual = (Asciidoctor.convert input).tr_s '\n', '\n' (expect actual).to include expected.chomp end it 'should create a basic chat block with non-default values with document attributes' do input = <<~INPUT :avatarsdir: /avatars :avatarstype: webp [chat, foodogsquared] ==== Hello there! ==== INPUT expected = <<~RESULT
foodogsquared
foodogsquared

Hello there!

RESULT actual = (Asciidoctor.convert input).tr_s '\n', '\n' (expect actual).to include expected.chomp end it 'should create a basic chat block with non-default values' do input = <<~INPUT :avatarsdir: /avatars :avatarstype: webp [chat, foodogsquared, state=nervous, role=shake] ==== Hello there! *wow* ==== INPUT expected = <<~RESULT
foodogsquared
foodogsquared

Hello there!

wow

RESULT actual = (Asciidoctor.convert input).tr_s '\n', '\n' (expect actual).to include expected.chomp end end