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