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, FileInMenu, Filter, FilterTest, HashDelegator, HashDelegatorParent, Histogram, LinkHistory, LinkState, MDoc, MarkParse, MenuBuilder, OptionValue, PathUtilsTest, SavedAsset, SavedFilesMatcher, SearchResultsReport, 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.5'

Instance Method Summary collapse

Methods included from Exceptions

error_handler, warn_format

Instance Method Details

#test_select_blockObject



810
811
812
813
814
815
816
817
818
# File 'lib/markdown_exec.rb', line 810

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