Class: MarkdownExec::TestHashDelegator::TestHashDelegatorStringSendColor
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- MarkdownExec::TestHashDelegator::TestHashDelegatorStringSendColor
- Defined in:
- lib/hash_delegator.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
3065 3066 3067 3068 3069 |
# File 'lib/hash_delegator.rb', line 3065 def setup @hd = HashDelegator.new @hd.instance_variable_set(:@delegate_object, { red: 'red', green: 'green' }) end |
#test_string_send_color ⇒ Object
3071 3072 3073 3074 3075 3076 3077 |
# File 'lib/hash_delegator.rb', line 3071 def test_string_send_color assert_equal 'Hello'.red, @hd.string_send_color('Hello', :red) assert_equal 'World'.green, @hd.string_send_color('World', :green) assert_equal 'Default'.plain, @hd.string_send_color('Default', :blue) end |