Sha256: 32dabd2578de022dcf0aaf41802c030a69784bae68054764833037eb5b9a6e97
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
require 'spec_helper' describe KnowledgeBase::Configuration do before do KnowledgeBase.reset end it 'should be configurable' do subject.categories_path = :fog expect(subject.categories_path).to eq :fog end describe '#categories_path' do it 'should default to "categories"' do expect(subject.categories_path).to eq 'categories' end end describe '#articles_path' do it 'should default to "articles"' do expect(subject.articles_path).to eq 'articles' end end describe '#section_styles' do it 'should default to an empty hash' do expect(subject.section_styles).to eq({ }) end end describe '#text_image_uploader' do it 'should default to the KB uploader' do expect(subject.text_image_uploader).to eq KnowledgeBase::ImageUploader end end describe '#image_image_uploader' do it 'should default to the KB uploader' do expect(subject.image_image_uploader).to eq KnowledgeBase::ImageUploader end end describe '#gallery_image_uploader' do it 'should default to the KB uploader' do expect(subject.gallery_image_uploader).to eq KnowledgeBase::ImageUploader end end describe '#list_image_uploader' do it 'should default to the KB uploader' do expect(subject.list_image_uploader).to eq KnowledgeBase::ImageUploader end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knowledge_base-0.2.0 | spec/lib/knowledge_base/configuration_spec.rb |