Sha256: 6bb7e7211755e9ddc4eccdb7ed6030ccb295cd81e4ccfcb79170b53bd56c565f
Contents?: true
Size: 776 Bytes
Versions: 4
Compression:
Stored size: 776 Bytes
Contents
# coding: utf-8 require 'test/unit/helper' class ThinReports::Core::Shape::Basic::TestBlockInterface < MiniTest::Unit::TestCase include ThinReports::TestHelpers Basic = ThinReports::Core::Shape::Basic def setup parent = flexmock('parent') format = Basic::BlockFormat.new({}) internal = Basic::BlockInternal.new(parent, Basic::BlockFormat.new({})) @interface = Basic::BlockInterface.new(parent, format, internal) end def test_value_should_work_as_reader_with_no_arguments @interface.internal.write_value('new value') assert_equal @interface.value, 'new value' end def test_value_should_work_as_writer_with_arguments @interface.value('new value') assert_equal @interface.internal.read_value, 'new value' end end
Version data entries
4 entries across 4 versions & 1 rubygems