Sha256: eb81d90b57d1fedaa3392d9334990e12765eb1fcec1f035c0d14a1aa5d0f2234

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class Thinreports::Core::Shape::List::TestPageState < Minitest::Test
  include Thinreports::TestHelper

  # Alias
  List = Thinreports::Core::Shape::List

  def setup
    parent = mock('parent')
    format = mock('format')

    @state = List::PageState.new(parent, format)
  end

  def test_alias_class
    assert_same List::PageState, List::Internal
  end

  def test_type_of?
    assert_equal @state.type_of?('list'), true
  end

  def test_finalized!
    assert_equal @state.finalized?, false
    @state.finalized!
    assert_equal @state.finalized?, true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.10.3 test/units/core/shape/list/test_page_state.rb
thinreports-0.10.2 test/unit/core/shape/list/test_page_state.rb
thinreports-0.10.1 test/unit/core/shape/list/test_page_state.rb
thinreports-0.10.0 test/unit/core/shape/list/test_page_state.rb