Sha256: 69fe9cfac056f7433444bc36d0e3bfeab24f55f9d2a0d66d0d261d890b3e4018
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
require "spec_helper" class TestSpotlightImageDerivatives include Spotlight::ImageDerivatives end describe Spotlight::ImageDerivatives do let(:subject) { TestSpotlightImageDerivatives.new } describe '#spotlight_image_derivatives' do it 'should include default derivatives' do expect(subject.spotlight_image_derivatives.length).to eq 3 expect(subject.spotlight_image_derivatives.map do |d| d[:field] end).to eq [Spotlight::Engine.config.full_image_field, Spotlight::Engine.config.thumbnail_field, Spotlight::Engine.config.square_image_field] end end end
Version data entries
3 entries across 3 versions & 1 rubygems