Sha256: e88137727713a7e3afdacb6ee79e943ca0a53b6d752421696cefad775a875eef

Contents?: true

Size: 552 Bytes

Versions: 16

Compression:

Stored size: 552 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 spec/lib/engine_spec.rb
qbrick-2.7 spec/lib/engine_spec.rb
qbrick-2.6.10 spec/lib/engine_spec.rb
qbrick-2.6.9 spec/lib/engine_spec.rb
qbrick-2.6.8 spec/lib/engine_spec.rb
qbrick-2.6.7 spec/lib/engine_spec.rb
qbrick-2.6.6 spec/lib/engine_spec.rb
qbrick-2.6.5 spec/lib/engine_spec.rb
qbrick-2.6.4 spec/lib/engine_spec.rb
qbrick-2.6.3 spec/lib/engine_spec.rb
qbrick-2.6.2 spec/lib/engine_spec.rb
qbrick-2.6.1 spec/lib/engine_spec.rb
qbrick-2.6.0 spec/lib/engine_spec.rb
qbrick-2.5.2 spec/lib/engine_spec.rb
qbrick-2.5.1 spec/lib/engine_spec.rb
qbrick-2.5.0 spec/lib/engine_spec.rb