Sha256: 6c269a33861f28939f961acc1ded01c20e4c95ae4c1dc6796a321ddc8c8f603b
Contents?: true
Size: 853 Bytes
Versions: 4
Compression:
Stored size: 853 Bytes
Contents
# coding: utf-8 require 'test/unit/helper' class ThinReports::Core::Shape::TextBlock::TestFormatter < MiniTest::Unit::TestCase include ThinReports::TestHelpers # Alias Formatter = ThinReports::Core::Shape::TextBlock::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
4 entries across 4 versions & 1 rubygems