Class: MarkdownExec::TestHashDelegatorStringSendColor
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegatorStringSendColor
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
7112 7113 7114 |
# File 'lib/hash_delegator.rb', line 7112 def setup @hd = HashDelegator.new(red: 'red', green: 'green') end |
#test_string_send_color ⇒ Object
7116 7117 7118 7119 7120 7121 7122 7123 |
# File 'lib/hash_delegator.rb', line 7116 def test_string_send_color assert_equal AnsiString.new('Hello').red, @hd.string_send_color('Hello', :red) assert_equal AnsiString.new('World').green, @hd.string_send_color('World', :green) assert_equal AnsiString.new('Default').plain, @hd.string_send_color('Default', :blue) end |