Class: MarkdownExec::TestHashDelegatorHandleBackLink

Inherits:
Minitest::Test
  • Object
show all
Defined in:
lib/hash_delegator.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



6708
6709
6710
6711
# File 'lib/hash_delegator.rb', line 6708

def setup
  @hd = HashDelegator.new
  @hd.stubs(:history_state_pop)
end


6713
6714
6715
6716
6717
6718
6719
6720
6721
# File 'lib/hash_delegator.rb', line 6713

def test_pop_link_history_new_state
  # Verifying that history_state_pop is called
  # @hd.expects(:history_state_pop).once

  result = @hd.pop_link_history_new_state

  # Asserting the result is an instance of LinkState
  assert_nil result.block_name
end