Sha256: d1d92d33b76ebd9d8e7f693625592e5d0e53cc61ba5b09cd8f58bf57bc1fc690

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 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 = Thinreports::Report.new layout: layout_file.path
    @page = @report.start_new_page
  end

  def test_src
    @page.item(:image_block).src('/path/to/image.png')
    assert_equal '/path/to/image.png', @page.item(:image_block).src
  end

  def test_src=
    @page.item(:image_block).src = '/path/to/image.png'
    assert_equal '/path/to/image.png', @page.item(:image_block).src
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 test/unit/core/shape/image_block/test_interface.rb
thinreports-0.9.0 test/unit/core/shape/image_block/test_interface.rb