# coding: utf-8 require 'test_helper' class Thinreports::Core::Shape::ImageBlock::TestInterface < Minitest::Test include Thinreports::TestHelper ImageBlock = Thinreports::Core::Shape::ImageBlock def setup @report = new_report 'layout_block.tlf' @page = @report.start_new_page end def test_src @page.item(:image_block1).src('/path/to/image.png') assert_equal '/path/to/image.png', @page.item(:image_block1).src end def test_src= @page.item(:image_block1).src = '/path/to/image.png' assert_equal '/path/to/image.png', @page.item(:image_block1).src end end