Sha256: a73b079ad30bebf171b9912663acb75c2e759de305a2957fbdf6d4d6bfdc6e06

Contents?: true

Size: 252 Bytes

Versions: 21

Compression:

Stored size: 252 Bytes

Contents

require 'spec_helper'

describe Alchemy::EssencePicture do

  it "should not store negative values for crop_from" do
    essence = Alchemy::EssencePicture.new(:crop_from => '-1x100')
    essence.save!
    essence.crop_from.should == "0x100"
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.4 spec/models/essence_picture_spec.rb
alchemy_cms-2.3.1 spec/models/essence_picture_spec.rb
alchemy_cms-2.4.beta2 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.3.2 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.3.1 spec/models/essence_picture_spec.rb
alchemy_cms-2.3.0 spec/models/essence_picture_spec.rb
alchemy_cms-2.3.rc5 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.2 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.1 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.0 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc15 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc14 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc13 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc11 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc8 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc7 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc6 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc3 spec/models/essence_picture_spec.rb
alchemy_cms-2.2.rc2 spec/models/essence_picture_spec.rb