Sha256: cfd3bd02777ca565ded18d819463a3a5c69d3a680cc41aa333b97f4d84be6c67
Contents?: true
Size: 848 Bytes
Versions: 5
Compression:
Stored size: 848 Bytes
Contents
#!/usr/bin/env bats load 'test_helper' @test 'Publish document file name - mode: write, name, format' { export MDE_PUBLISH_DOCUMENT_NAME_FORMAT='- %{document}' run bin/bmde \ --publish-document-file-mode write \ --publish-document-file-name /tmp/mde_file \ docs/dev/specs.md \ bash1 [[ "$(cat /tmp/mde_file)" == "- ./docs/dev/specs.md" ]] } @test 'Publish block name - mode: write, name, format' { [ -f /tmp/mde_file ] && rm /tmp/mde_file export MDE_PUBLISH_BLOCK_NAME_FORMAT='++%{block}' export MDE_PUBLISH_DOCUMENT_NAME_FORMAT='--%{document}' run bin/bmde \ --publish-document-file-mode append \ --publish-document-file-name /tmp/mde_file \ docs/dev/specs.md \ bash1 expect_equal_with_conversion "--./docs/dev/specs.md ++bash1 --./docs/dev/specs.md" "$(cat /tmp/mde_file)" "${BATS_OUTPUT_FILTER:-A}" }
Version data entries
5 entries across 5 versions & 1 rubygems