class MarkdownExec::TestHashDelegator::TestHashDelegatorHandleBackLink
def setup
def setup @hd = HashDelegator.new @hd.stubs(:history_state_pop) end
def test_pop_link_history_and_trigger_load
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