Class: MarkdownExec::TestHashDelegatorStartFencedBlock
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegatorStartFencedBlock
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
5019 5020 5021 5022 5023 5024 |
# File 'lib/hash_delegator.rb', line 5019 def setup @hd = HashDelegator.new({ block_name_wrapper_match: 'WRAPPER_REGEX', block_calls_scan: 'CALLS_REGEX' }) end |
#test_start_fenced_block ⇒ Object
5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 |
# File 'lib/hash_delegator.rb', line 5026 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 |