class MarkdownExec::TestHashDelegator::TestHashDelegatorStartFencedBlock

def setup

def setup
  @hd = HashDelegator.new({
                            block_name_wrapper_match: 'WRAPPER_REGEX',
                            block_calls_scan: 'CALLS_REGEX'
                          })
end

def test_start_fenced_block

def test_start_fenced_block
  line = '```fenced'
  headings = ['Heading 1']
  regex = /```(?<name>\w+)(?<rest>.*)/
  fcb = @hd.start_fenced_block(line, headings, regex)
  assert_instance_of MarkdownExec::FCB, fcb
  assert_equal headings, fcb.headings
  assert_equal 'fenced', fcb.dname
end