Class: MarkdownExec::TestHashDelegatorHandleBackLink

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

Instance Method Summary collapse

Instance Method Details

#setupObject



6843
6844
6845
6846
# File 'lib/hash_delegator.rb', line 6843

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


6848
6849
6850
6851
6852
6853
6854
6855
6856
# File 'lib/hash_delegator.rb', line 6848

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