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

:reek:TooManyConstants

Defined Under Namespace

Classes: DebugHelper, Error, FCB, Filter, FilterTest, HashDelegator, HashDelegatorParent, LinkHistory, LinkState, MDoc, MarkParse, OptionValue, PathUtilsTest, SavedAsset, SavedFilesMatcher, TestCollectUniqueNames, TestHashDelegator, TestHashDelegator0, 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.3'

Instance Method Summary collapse

Methods included from Exceptions

error_handler, warn_format

Instance Method Details

#test_select_blockObject



648
649
650
651
652
653
654
655
656
# File 'lib/markdown_exec.rb', line 648

def test_select_block
  blocks = [block1, block2]
  menu = [m1, m2]

  block, state = obj.select_block(blocks, menu, nil, {})

  assert_equal block1, block
  assert_equal MenuState::CONTINUE, state
end