diff --git a/playbook/spec/pb_kits/playbook/kits/section_seperator_spec.rb b/playbook/spec/pb_kits/playbook/kits/section_seperator_spec.rb index 55fc518d01..c3b76bde20 100644 --- a/playbook/spec/pb_kits/playbook/kits/section_seperator_spec.rb +++ b/playbook/spec/pb_kits/playbook/kits/section_seperator_spec.rb @@ -20,6 +20,11 @@ is_expected.to define_boolean_prop(:dark) .with_default(false) } + it { + is_expected.to define_enum_prop(:color) + .with_default("default") + .with_values("default", "primary") + } describe "#classname" do it "returns namespaced class name", :aggregate_failures do @@ -29,6 +34,9 @@ expect(subject.new(orientation: "vertical", classname: "additional_class", dark: true).classname).to eq "pb_section_separator_kit_card_vertical additional_class dark" expect(subject.new(classname: "additional_class", dark: true).classname).to eq "pb_section_separator_kit_card_horizontal additional_class dark" expect(subject.new(line_style: "dashed").classname).to eq "pb_section_separator_kit_card_horizontal_dashed" + expect(subject.new(color: "primary").classname).to eq "pb_section_separator_kit_card_horizontal_color_primary" + expect(subject.new(color: "primary", orientation: "vertical", dark: true).classname).to eq "pb_section_separator_kit_card_vertical_color_primary dark" + expect(subject.new(color: "default", line_style: "dashed").classname).to eq "pb_section_separator_kit_card_horizontal_dashed" end end end