Sha256: 6d4555b6bc98e4a26d918fe484df527b6b8590aa88b1eb94495eae79226bdd19

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

# coding: utf-8

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

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 test/unit/core/shape/list/test_page_state.rb
thinreports-0.9.0 test/unit/core/shape/list/test_page_state.rb