Sha256: a0f43150f35f53658ccc23fc07760b2f50bf230feb026ec5986e8307e5a7a130
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
# coding: utf-8 require 'test/unit/helper' class ThinReports::Core::Shape::Tblock::Formatter::TestBasic < MiniTest::Unit::TestCase include ThinReports::TestHelpers # Alias Formatter = ThinReports::Core::Shape::Tblock::Formatter::Basic def test_apply_simple_format format = flexmock(:format_base => 'Hello {value}!') assert_equal Formatter.new(format).apply('ThinReports'), 'Hello ThinReports!' end def test_apply_multiple_format format = flexmock(:format_base => 'Hello {value}! And good bye {value}.') assert_equal Formatter.new(format).apply('ThinReports'), 'Hello ThinReports! And good bye ThinReports.' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.6.0.pre3 | test/unit/core/shape/tblock/formatter/test_basic.rb |