Class: MarkdownExec::TestHashDelegatorBlocksFromNestedFiles
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegatorBlocksFromNestedFiles
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
- #setup ⇒ Object
- #test_blocks_from_nested_files ⇒ Object
- #test_blocks_from_nested_files_with_no_chrome ⇒ Object
Instance Method Details
#setup ⇒ Object
4444 4445 4446 4447 4448 4449 4450 |
# File 'lib/hash_delegator.rb', line 4444 def setup @hd = HashDelegator.new @hd.stubs(:iter_blocks_from_nested_files).yields(:blocks, FCB.new) @hd.stubs(:create_and_add_chrome_blocks) @hd.instance_variable_set(:@delegate_object, {}) HashDelegator.stubs(:error_handler) end |
#test_blocks_from_nested_files ⇒ Object
4452 4453 4454 4455 4456 |
# File 'lib/hash_delegator.rb', line 4452 def test_blocks_from_nested_files result = @hd.blocks_from_nested_files assert_kind_of Array, result assert_kind_of FCB, result.first end |
#test_blocks_from_nested_files_with_no_chrome ⇒ Object
4458 4459 4460 4461 4462 4463 4464 4465 |
# File 'lib/hash_delegator.rb', line 4458 def test_blocks_from_nested_files_with_no_chrome @hd.instance_variable_set(:@delegate_object, { no_chrome: true }) @hd.expects(:create_and_add_chrome_blocks).never result = @hd.blocks_from_nested_files assert_kind_of Array, result end |