Sha256: 4c5b646c07b85e45389905fbf220bb64acd9b67857cf610d89c94a5e10a8f7c1

Contents?: true

Size: 553 Bytes

Versions: 62

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::Engine do

  describe '.configure' do

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

      it 'delegates .add to ImageSize' do
        Kuhsaft::ImageSize.should_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

62 entries across 62 versions & 2 rubygems

Version Path
kuhsaft-1.2.15 spec/lib/engine_spec.rb
kuhsaft-1.2.14 spec/lib/engine_spec.rb
kuhsaft-1.2.13 spec/lib/engine_spec.rb
kuhsaft-1.2.12 spec/lib/engine_spec.rb
kuhsaft-1.2.11 spec/lib/engine_spec.rb
kuhsaft-1.2.10 spec/lib/engine_spec.rb
kuhsaft-1.2.9 spec/lib/engine_spec.rb
kuhsaft-1.2.8 spec/lib/engine_spec.rb
kuhsaft-1.2.7 spec/lib/engine_spec.rb
kuhsaft-1.2.6 spec/lib/engine_spec.rb
kuhsaft-1.2.5 spec/lib/engine_spec.rb
kuhsaft-1.2.4 spec/lib/engine_spec.rb
kuhsaft-1.2.3 spec/lib/engine_spec.rb
kuhsaft-1.2.2 spec/lib/engine_spec.rb
kuhsaft-1.2.1 spec/lib/engine_spec.rb
kuhsaft-1.2.0 spec/lib/engine_spec.rb
kuhsaft-1.1.1 spec/lib/engine_spec.rb
kuhsaft-1.1.0 spec/lib/engine_spec.rb
kuhsaft-1.0.3 spec/lib/engine_spec.rb
kuhsaft-1.0.2 spec/lib/engine_spec.rb