Sha256: 1e9fc346809cef9925ab474b723c6036a783ad3cb991bb30a6868060a220da63

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.8.2 test/unit/core/shape/image_block/test_interface.rb
thinreports-0.8.1 test/unit/core/shape/image_block/test_interface.rb
thinreports-0.8.0 test/unit/core/shape/image_block/test_interface.rb