require 'minitest/autorun' require 'minitest/power_assert' require 'idobadge' class TestIdobadge < MiniTest::Test def test_success assert { Idobadge.success('success') == ' success' } end def test_warning assert { Idobadge.warning('warning') == ' warning' } end def test_important assert { Idobadge.important('important') == ' important' } end def test_failure assert { Idobadge.failure('failure') == ' failure' } end def test_customize_icon assert { Idobadge.success('success', icon: 'thumbs-o-up') == ' success' } end def test_no_icon assert { Idobadge.success('success', icon: nil) == 'success' } end end