Module: MarkdownExec
- Includes:
- Exceptions
- Defined in:
- lib/markdown_exec.rb,
lib/fcb.rb,
lib/mdoc.rb,
lib/mdoc.rb,
lib/filter.rb,
lib/filter.rb,
lib/link_history.rb,
lib/link_history.rb,
lib/option_value.rb,
lib/saved_assets.rb,
lib/markdown_exec.rb,
lib/hash_delegator.rb,
lib/hash_delegator.rb,
lib/saved_files_matcher.rb,
lib/markdown_exec/version.rb
Overview
Defined Under Namespace
Classes: DebugHelper, Error, FCB, Filter, FilterTest, HashDelegator, LinkHistory, LinkState, MDoc, MarkParse, OptionValue, SavedAsset, SavedFilesMatcher, TestCollectUniqueNames, TestHashDelegator, TestHashDelegatorUpdateMenuAttribYieldSelectedWithBody, TestHashDelegatorWaitForUserSelectedBlock, TestHashDelegatorYieldToBlock, TestLinkHistory, TestMDoc, TestMDoc2, TestMDocCollectDependencies
Constant Summary
collapse
- APP_DESC =
'Markdown Executor'
- APP_NAME =
'MDE'
- BIN_NAME =
'mde'
- GEM_NAME =
'markdown_exec'
- TAP_DEBUG =
'MDE_DEBUG'
- VERSION =
'2.0.2'
Instance Method Summary
collapse
Methods included from Exceptions
error_handler, warn_format
Instance Method Details
#test_handles_path_with_no_separator_as_is ⇒ Object
3209
3210
3211
3212
3213
3214
|
# File 'lib/hash_delegator.rb', line 3209
def test_handles_path_with_no_separator_as_is
path = 'bin'
expression = 'prefix*suffix'
expected_result = 'prefixbinsuffix'
assert_equal expected_result, resolve_path_or_substitute(path, expression)
end
|
#test_resolves_absolute_path ⇒ Object
3197
3198
3199
3200
|
# File 'lib/hash_delegator.rb', line 3197
def test_resolves_absolute_path
absolute_path = '/usr/local/bin'
assert_equal '/usr/local/bin', resolve_path_or_substitute(absolute_path, 'prefix/*/suffix')
end
|
#test_returns_expression_unchanged_for_empty_path ⇒ Object
3216
3217
3218
3219
3220
3221
|
# File 'lib/hash_delegator.rb', line 3216
def test_returns_expression_unchanged_for_empty_path
path = ''
expression = 'prefix/*/suffix'
expected_result = 'prefix/*/suffix'
assert_equal expected_result, resolve_path_or_substitute(path, expression)
end
|
#test_select_block ⇒ Object
649
650
651
652
653
654
655
656
657
|
# File 'lib/markdown_exec.rb', line 649
def test_select_block
blocks = [block1, block2]
= [m1, m2]
block, state = obj.select_block(blocks, , nil, {})
assert_equal block1, block
assert_equal MenuState::CONTINUE, state
end
|
#test_substitutes_wildcard_with_path ⇒ Object
3202
3203
3204
3205
3206
3207
|
# File 'lib/hash_delegator.rb', line 3202
def test_substitutes_wildcard_with_path
path = 'bin'
expression = 'prefix/*/suffix'
expected_result = 'prefix/bin/suffix'
assert_equal expected_result, resolve_path_or_substitute(path, expression)
end
|