Class: MarkdownExec::TestHashDelegator::TestHashDelegatorHandleBackLink
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegator::TestHashDelegatorHandleBackLink
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
2832 2833 2834 2835 |
# File 'lib/hash_delegator.rb', line 2832 def setup @hd = HashDelegator.new @hd.stubs(:history_state_pop) end |
#test_pop_link_history_and_trigger_load ⇒ Object
2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 |
# File 'lib/hash_delegator.rb', line 2837 def test_pop_link_history_and_trigger_load # Verifying that history_state_pop is called # @hd.expects(:history_state_pop).once result = @hd.pop_link_history_and_trigger_load # Asserting the result is an instance of LoadFileLinkState assert_instance_of LoadFileLinkState, result assert_equal LoadFile::Load, result.load_file assert_nil result.link_state.block_name end |