Sha256: f7b5c8d5ff6c19c7f759f702d7d3c00384f34f3b9b7d1916392551322306520b
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
# coding: utf-8 require 'test/unit/helper' class ThinReports::Core::Shape::List::TestEvents < MiniTest::Unit::TestCase include ThinReports::TestHelpers List = ThinReports::Core::Shape::List def setup @events = List::Events.new end def test_page_footer_insert_event_should_be_able_to_be_used @events.send(:verify_event_type, :page_footer_insert) rescue ThinReports::Errors::UnknownEventType flunk ':page_footer_insert cannot be used.' end def test_footer_insert_event_should_be_able_to_be_used @events.send(:verify_event_type, :footer_insert) rescue ThinReports::Errors::UnknownEventType flunk ':footer_insert cannot be used.' end def test_page_finalize_event_should_be_able_to_be_used @events.send(:verify_event_type, :page_finalize) rescue ThinReports::Errors::UnknownEventType flunk ':page_finalize cannot be used.' end def test_list_property_of_PageEvent_should_equal_to_target_property ev = List::Events::PageEvent.new(:page_finalize, 'list', 'page') assert_same ev.list, ev.target end end
Version data entries
4 entries across 4 versions & 1 rubygems