Class: MarkdownExec::TestHashDelegatorMenuChromeOption
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegatorMenuChromeOption
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
- #setup ⇒ Object
- #test_menu_chrome_formatted_option_with_format ⇒ Object
- #test_menu_chrome_formatted_option_without_format ⇒ Object
Instance Method Details
#setup ⇒ Object
7068 7069 7070 7071 7072 7073 7074 |
# File 'lib/hash_delegator.rb', line 7068 def setup @hd = HashDelegator.new( menu_chrome_format: '-- %s --', menu_option_back_name: "'Back'" ) HashDelegator.stubs(:safeval).with("'Back'").returns('Back') end |
#test_menu_chrome_formatted_option_with_format ⇒ Object
7076 7077 7078 7079 |
# File 'lib/hash_delegator.rb', line 7076 def assert_equal '-- Back --', @hd.(:menu_option_back_name) end |
#test_menu_chrome_formatted_option_without_format ⇒ Object
7081 7082 7083 7084 7085 |
# File 'lib/hash_delegator.rb', line 7081 def @hd = HashDelegator.new(menu_option_back_name: "'Back'") assert_equal 'Back', @hd.(:menu_option_back_name) end |