Class: MarkdownExec::TestHashDelegatorUpdateMenuAttribYieldSelectedWithBody
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegatorUpdateMenuAttribYieldSelectedWithBody
- Defined in:
- lib/hash_delegator.rb
Overview
end
Instance Method Summary collapse
- #setup ⇒ Object
- #test_update_menu_attrib_yield_selected_with_body ⇒ Object
- #test_update_menu_attrib_yield_selected_without_body ⇒ Object
Instance Method Details
#setup ⇒ Object
7017 7018 7019 7020 7021 7022 7023 7024 |
# File 'lib/hash_delegator.rb', line 7017 def setup @hd = HashDelegator.new @fcb = mock('Fcb') @fcb.stubs(:body).returns(true) HashDelegator.stubs(:initialize_fcb_names) HashDelegator.stubs(:default_block_title_from_body) Filter.stubs(:yield_to_block_if_applicable) end |
#test_update_menu_attrib_yield_selected_with_body ⇒ Object
7026 7027 7028 7029 7030 7031 7032 7033 7034 |
# File 'lib/hash_delegator.rb', line 7026 def HashDelegator.expects(:initialize_fcb_names).with(@fcb) HashDelegator.expects(:default_block_title_from_body).with(@fcb) Filter.expects(:yield_to_block_if_applicable).with(@fcb, [:some_message], {}) HashDelegator.(fcb: @fcb, messages: [:some_message]) end |
#test_update_menu_attrib_yield_selected_without_body ⇒ Object
7036 7037 7038 7039 7040 7041 |
# File 'lib/hash_delegator.rb', line 7036 def @fcb.stubs(:body).returns(nil) HashDelegator.expects(:initialize_fcb_names).with(@fcb) HashDelegator.(fcb: @fcb, messages: [:some_message]) end |