filter pages by type

This commit is contained in:
2022-12-28 18:33:46 +02:00
parent d375bad897
commit 547d750034
8 changed files with 30 additions and 4 deletions

View File

@ -11,7 +11,7 @@ module Merged
assert_equal OptionDefinition.first.class , OptionDefinition
end
def test_there_options
assert_equal OptionDefinition.all.length , 19
assert_equal OptionDefinition.all.length , 20
end
def test_has_option_objects
assert_equal first.class , OptionDefinition

View File

@ -12,7 +12,7 @@ module Merged
assert spacer
end
def test_has_sections
assert_equal SectionStyle.all.length , 7
assert_equal SectionStyle.all.length , 9
end
def test_finds_section_by_template
spacer = SectionStyle.find_by_template("section_spacer")