Sha256: 9cdba96d80ed6f70f3fb3267d5be8c1b3a0103211dd5abe4eef0af203d55310f
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
require 'spec_helper' module KnowledgeBase describe Sectionables::Sectionable do describe "::inherited" do let(:child) { KnowledgeBase::Sectionables::Text } context "when no styles are configured" do before do KnowledgeBase.config.section_styles = { } described_class.inherited child end it "enumerizes over an empty array" do expect(KnowledgeBase::Sectionables::Text.style.options).to eq [] end end context "when styles are configured" do before do KnowledgeBase.config.section_styles = { text: [ :red ] } described_class.inherited child end it "enumerizes over the configured styles" do expect(KnowledgeBase::Sectionables::Text.style.options).to eq [["Red", "red"]] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knowledge_base-0.2.0 | spec/models/knowledge_base/sectionables/sectionable_spec.rb |