Class: MarkdownExec::TestHashDelegatorHandleBackLink

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

Instance Method Summary collapse

Instance Method Details

#setupObject



4767
4768
4769
4770
# File 'lib/hash_delegator.rb', line 4767

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


4772
4773
4774
4775
4776
4777
4778
4779
4780
# File 'lib/hash_delegator.rb', line 4772

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