Sha256: 1a5b37a8cc9765883f0b1b7b14aafbc26a1420e31df0d02e24920f3d5f47e27b

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

# coding: utf-8

require 'test/unit/helper'

class ThinReports::Core::Shape::List::TestPageState < MiniTest::Unit::TestCase
  include ThinReports::TestHelpers
  
  # Alias
  List = ThinReports::Core::Shape::List
  
  def setup
    parent = flexmock('parent')
    format = flexmock('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.7.6 test/unit/core/shape/list/test_page_state.rb
thinreports-0.7.5 test/unit/core/shape/list/test_page_state.rb
thinreports-0.7.0 test/unit/core/shape/list/test_page_state.rb
thinreports-0.6.0.pre3 test/unit/core/shape/list/test_page_state.rb