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
3044 3045 3046 3047 3048 |
# File 'lib/hash_delegator.rb', line 3044 def setup @hd = HashDelegator.new @mock_document = mock('MarkdownDocument') @selected_item = mock('FCB') end |
#test_compile_execute_and_trigger_reuse_with_output_script ⇒ Object
3070 3071 3072 3073 3074 3075 3076 3077 3078 |
# File 'lib/hash_delegator.rb', line 3070 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
3060 3061 3062 3063 3064 3065 3066 3067 3068 |
# File 'lib/hash_delegator.rb', line 3060 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
3050 3051 3052 3053 3054 3055 3056 3057 3058 |
# File 'lib/hash_delegator.rb', line 3050 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 |