Sha256: 18125e0bd36329465b4ecf25c6f600a6cbd99bf7ad8fef765f662ae4cbd09dcb

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

# coding: utf-8

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

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 test/unit/core/shape/basic/test_block_format.rb
thinreports-0.9.0 test/unit/core/shape/basic/test_block_format.rb