Class: ODDB::TestFachinfoRule
- Defined in:
- ext/fipdf/test/rules_test.rb
Instance Method Summary collapse
- #setup ⇒ Object
- #test_fachinfo_fulfilled ⇒ Object
- #test_fachinfo_fulfilled_no_page_break ⇒ Object
- #test_fachinfo_not_fulfilled ⇒ Object
Instance Method Details
#setup ⇒ Object
19 20 21 |
# File 'ext/fipdf/test/rules_test.rb', line 19 def setup @fachinfo_rule = ODDB::FiPDF::FachinfoRule.new(:Fachinfo_rule) end |
#test_fachinfo_fulfilled ⇒ Object
22 23 24 25 26 27 28 |
# File 'ext/fipdf/test/rules_test.rb', line 22 def test_fachinfo_fulfilled @fachinfo_rule.notify(:write_paragraph) @fachinfo_rule.notify(:ez_new_page) assert_equal(true, @fachinfo_rule.fulfilled?) @fachinfo_rule.notify(:write_paragraph) assert_equal(true, @fachinfo_rule.fulfilled?) end |
#test_fachinfo_fulfilled_no_page_break ⇒ Object
29 30 31 32 33 34 |
# File 'ext/fipdf/test/rules_test.rb', line 29 def test_fachinfo_fulfilled_no_page_break @fachinfo_rule.notify(:write_paragraph) assert_equal(true, @fachinfo_rule.fulfilled?) @fachinfo_rule.notify(:write_paragraph) assert_equal(true, @fachinfo_rule.fulfilled?) end |
#test_fachinfo_not_fulfilled ⇒ Object
35 36 37 38 39 40 |
# File 'ext/fipdf/test/rules_test.rb', line 35 def test_fachinfo_not_fulfilled @fachinfo_rule.notify(:ez_new_page) assert_equal(false, @fachinfo_rule.fulfilled?) @fachinfo_rule.notify(:write_paragraph) assert_equal(false, @fachinfo_rule.fulfilled?) end |