Class: MarkdownExec::TestHashDelegatorUpdateMenuAttribYieldSelectedWithBody
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegatorUpdateMenuAttribYieldSelectedWithBody
- Defined in:
- lib/hash_delegator.rb
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
3259 3260 3261 3262 3263 3264 3265 3266 |
# File 'lib/hash_delegator.rb', line 3259 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
3268 3269 3270 3271 3272 3273 3274 |
# File 'lib/hash_delegator.rb', line 3268 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
3276 3277 3278 3279 3280 |
# File 'lib/hash_delegator.rb', line 3276 def @fcb.stubs(:body).returns(nil) HashDelegator.expects(:initialize_fcb_names).with(@fcb) HashDelegator.(fcb: @fcb, messages: [:some_message]) end |