Sha256: b46142338cf782bb0f4e71ea4d185ad3a35b879768d0dec0b3c6b54bdb2318c2

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

#!/usr/bin/env bats

load 'test_helper'

# Directives

@test 'Directives - Import' {
  # this shell block is in the import, not the primary document
  run_mde_specs_md_args_expect_xansi 'shell-block-in-import' ' shell-block-in-import'
}

# Blocks, Wrapped

@test 'Shell blocks - wrapped block; nested; inverted' {
  run_mde_specs_md_args_expect_xansi '[single]' ' outer-before single-body outer-after'
  run_mde_specs_md_args_expect_xansi '[nested]' ' outer-before inner-before nested-body inner-after outer-after'
  run_mde_specs_md_args_expect_xansi '[inverted-nesting]' ' inner-before outer-before inverted-nesting outer-after inner-after'
}

# Blocks, Wrapped, Imported

@test 'Shell blocks - wrapped block; imported' {
  # the wrap blocks are in the import, not the primary document
  run_mde_specs_md_args_expect_xansi '[test-wrap-from-import]' ' wrap-from-import-before test-wrap-from-import wrap-from-import-after'
}

@test 'Shell blocks - required; wrapped block' {
  run_mde_specs_md_args_expect_xansi '[test-require-wrapped-block]' ' outer-before single-body outer-after test-require-wrapped-block'
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
markdown_exec-2.7.2 bats/mde.bats
markdown_exec-2.7.1 bats/mde.bats
markdown_exec-2.7.0 bats/mde.bats
markdown_exec-2.6.0 bats/mde.bats
markdown_exec-2.5.0 bats/mde.bats
markdown_exec-2.4.0 bats/mde.bats