Sha256: f84e192c6d36503dd3d57fdf077301782c88c94bed9a5b4b0b1f71392ca7e5d3

Contents?: true

Size: 244 Bytes

Versions: 12

Compression:

Stored size: 244 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

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.11 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.9.1 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.9 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.8.1 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.8 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.7 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.6 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.5 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.4 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.3 spec/models/essence_picture_spec.rb
alchemy_cms-2.1.2 spec/models/essence_picture_spec.rb