Skip to content

Commit

Permalink
Add spec for default uploaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Benjaminsen committed Sep 29, 2014
1 parent bac0ea9 commit 2d208f6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/lib/knowledge_base/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,28 @@
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

0 comments on commit 2d208f6

Please sign in to comment.