Sha256: 7e03b198d0faf3de4ba32c0a6a4dd1a486322ab3650f78b6a2cbe7a6138d8cfe
Contents?: true
Size: 1002 Bytes
Versions: 145
Compression:
Stored size: 1002 Bytes
Contents
class TestConstants < Test::Unit::TestCase def test_annotation if later_version?(0, 7, 2) assertion = :assert_const_defined else assertion = :assert_not_const_defined end send(assertion, Poppler, :AnnotationType) if assertion == :assert_const_defined assert_equal("3d", Poppler::AnnotationType::TYPE_3D.nick) end send(assertion, Poppler, :AnnotationFlag) send(assertion, Poppler, :AnnotationMarkupReplyType) send(assertion, Poppler, :AnnotationExternalDataType) if assertion == :assert_const_defined assert_equal("3d", Poppler::AnnotationExternalDataType::TYPE_3D.nick) end if later_version?(0, 9, 0) assert_not_const_defined(Poppler, :AnnotationTextIcon) else send(assertion, Poppler, :AnnotationTextIcon) end send(assertion, Poppler, :AnnotationTextState) send(assertion, Poppler, :AnnotationFreeTextQuadding) end def test_permissions assert_const_defined(Poppler, :Permissions) end end
Version data entries
145 entries across 145 versions & 1 rubygems