Sha256: cbcc97500ad0f086c60383204265b6623b624b4a3d3db246ebb4028754b02ccc

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class Thinreports::Core::Shape::Basic::TestBlockFormat < Minitest::Test
  include Thinreports::TestHelper

  BLOCK_FORMAT = {
    'value' => 'default value',
    'x' => 100.0,
    'y' => 200.0,
    'width' => 300.0,
    'height' => 400.0
  }

  Basic = Thinreports::Core::Shape::Basic

  def test_attribute_readers
    format = Basic::BlockFormat.new(BLOCK_FORMAT)

    assert_equal 'default value', format.value
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.10.3 test/units/core/shape/basic/test_block_format.rb
thinreports-0.10.2 test/unit/core/shape/basic/test_block_format.rb
thinreports-0.10.1 test/unit/core/shape/basic/test_block_format.rb
thinreports-0.10.0 test/unit/core/shape/basic/test_block_format.rb