Sha256: 1676e9ea3cae686fed0f55e2c023cc1b5dffb4fd25198e1ad21af68c46b3ca24
Contents?: true
Size: 585 Bytes
Versions: 14
Compression:
Stored size: 585 Bytes
Contents
require File.dirname(__FILE__) + '/../../test/test_helper' class FleximageOperatorResizeTest < Test::Unit::TestCase def setup @photo = PhotoBare.create(:image_file => files(:photo)) proxy = Fleximage::ImageProxy.new(@photo.load_image, @photo) @op = Fleximage::Operator::Base.new(proxy, @photo.load_image, @photo) @other_img = Magick::Image.read(@photo.file_path).first end def test_should_resize @photo.operate { |p| p.resize '300x400' } assert_equal 400, @photo.load_image.rows assert_equal 300, @photo.load_image.columns end end
Version data entries
14 entries across 14 versions & 4 rubygems