Sha256: 5e9ce613c44b5dd615473d06241d0477b40780c9dd143e4cf0abcd14cdb92b16
Contents?: true
Size: 793 Bytes
Versions: 4
Compression:
Stored size: 793 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class Thinreports::Core::Shape::TextBlock::TestFormatter < Minitest::Test include Thinreports::TestHelper # Alias Formatter = Thinreports::Core::Shape::TextBlock::Formatter def test_initialize_formatter_by_type assert_instance_of Formatter::Basic, Formatter.setup( stub(format_type: '') ) assert_instance_of Formatter::Number, Formatter.setup( stub(format_type: 'number') ) assert_instance_of Formatter::Datetime, Formatter.setup( stub(format_type: 'datetime') ) assert_instance_of Formatter::Padding, Formatter.setup( stub(format_type: 'padding') ) assert_raises Thinreports::Errors::UnknownFormatterType do Formatter.setup( stub(format_type: 'unknown') ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems