Sha256: d4e56f18ba9ebcf24fdc72a051803f97bb00a5bd101740a2f0c8e2a8e88f2a03

Contents?: true

Size: 592 Bytes

Versions: 23

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

describe StorageRoom::ImageVersion do
  before(:each) do
    @image_version = StorageRoom::ImageVersion.new(:identifier => 'thumb', :format => 'png', :resize_mode => 'fit', :width => 100, :height => 200)
  end
  
  context "Configuration" do
    describe "#keys" do
      it "should have keys" do        
        @image_version.identifier.should == 'thumb'
        @image_version.format.should == 'png'
        @image_version.resize_mode.should == 'fit'
        @image_version.width.should == 100
        @image_version.height.should == 200
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
storage_room-0.3.4 spec/storage_room/embeddeds/image_version_spec.rb
storage_room-0.3.3 spec/storage_room/embeddeds/image_version_spec.rb
storage_room-0.3.2 spec/storage_room/embeddeds/image_version_spec.rb