Sha256: 0002643b08064095c491e76ee92d39bb45cae2fdbec371b2635726fb387c0217

Contents?: true

Size: 561 Bytes

Versions: 7

Compression:

Stored size: 561 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::Engine do

  describe '.configure' do

    describe '.image_sizes' do
      it 'delegates .clear to ImageSize' do
        expect(Kuhsaft::ImageSize).to receive(:clear!)
        Kuhsaft::Engine.configure do
          config.image_sizes.clear!
        end
      end

      it 'delegates .add to ImageSize' do
        expect(Kuhsaft::ImageSize).to receive(:add).with(:something, 100, 200)
        Kuhsaft::Engine.configure do
          config.image_sizes.add(:something, 100, 200)
        end
      end
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kuhsaft-2.6.3 spec/lib/engine_spec.rb
kuhsaft-2.6.2 spec/lib/engine_spec.rb
kuhsaft-2.6.1 spec/lib/engine_spec.rb
kuhsaft-2.5.2 spec/lib/engine_spec.rb
kuhsaft-2.6.0 spec/lib/engine_spec.rb
kuhsaft-2.5.1 spec/lib/engine_spec.rb
kuhsaft-2.5.0 spec/lib/engine_spec.rb