Sha256: 17a383449cd5ff108d0c14b2a3bbb910df404198f99e3cfeda7cbe60dd485302
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
# coding: utf-8 require 'test/unit/helper' class ThinReports::Core::Shape::Tblock::TestFormatter < MiniTest::Unit::TestCase include ThinReports::TestHelpers # Alias Formatter = ThinReports::Core::Shape::Tblock::Formatter def test_initialize_formatter_by_type assert_instance_of Formatter::Basic, Formatter.setup( flexmock(:format_type => '') ) assert_instance_of Formatter::Number, Formatter.setup( flexmock(:format_type => 'number') ) assert_instance_of Formatter::Datetime, Formatter.setup( flexmock(:format_type => 'datetime') ) assert_instance_of Formatter::Padding, Formatter.setup( flexmock(:format_type => 'padding') ) assert_raises ThinReports::Errors::UnknownFormatterType do Formatter.setup( flexmock(:format_type => 'unknown') ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.6.0.pre3 | test/unit/core/shape/tblock/test_formatter.rb |