Class: MarkdownExec::TestHashDelegator::TestHashDelegatorHandleGenericBlock
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegator::TestHashDelegatorHandleGenericBlock
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
- #setup ⇒ Object
- #test_compile_execute_and_trigger_reuse_with_output_script ⇒ Object
- #test_compile_execute_and_trigger_reuse_with_user_approval ⇒ Object
- #test_compile_execute_and_trigger_reuse_without_user_approval ⇒ Object
Instance Method Details
#setup ⇒ Object
2988 2989 2990 2991 2992 |
# File 'lib/hash_delegator.rb', line 2988 def setup @hd = HashDelegator.new @mock_document = mock('MarkdownDocument') @selected_item = mock('FCB') end |
#test_compile_execute_and_trigger_reuse_with_output_script ⇒ Object
3014 3015 3016 3017 3018 3019 3020 3021 3022 |
# File 'lib/hash_delegator.rb', line 3014 def test_compile_execute_and_trigger_reuse_with_output_script # Mock the delegate object configuration @hd.instance_variable_set(:@delegate_object, { output_script: true, user_must_approve: false }) # Test the method with output script option # Expectations and assertions go here end |
#test_compile_execute_and_trigger_reuse_with_user_approval ⇒ Object
3004 3005 3006 3007 3008 3009 3010 3011 3012 |
# File 'lib/hash_delegator.rb', line 3004 def test_compile_execute_and_trigger_reuse_with_user_approval # Mock the delegate object configuration @hd.instance_variable_set(:@delegate_object, { output_script: false, user_must_approve: true }) # Test the method with user approval # Expectations and assertions go here end |
#test_compile_execute_and_trigger_reuse_without_user_approval ⇒ Object
2994 2995 2996 2997 2998 2999 3000 3001 3002 |
# File 'lib/hash_delegator.rb', line 2994 def test_compile_execute_and_trigger_reuse_without_user_approval # Mock the delegate object configuration @hd.instance_variable_set(:@delegate_object, { output_script: false, user_must_approve: false }) # Test the method without user approval # Expectations and assertions go here end |