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

Version Path
tvdeyen-fleximage-1.2.0 test/unit/operator_resize_test.rb
tvdeyen-fleximage-1.1.1 test/unit/operator_resize_test.rb
tvdeyen-fleximage-1.0.9 test/unit/operator_resize_test.rb
tvdeyen-fleximage-1.0.8 test/unit/operator_resize_test.rb
tvdeyen-fleximage-1.0.7 test/unit/operator_resize_test.rb
robinboening-fleximage-1.0.6 test/unit/operator_resize_test.rb
robinboening-fleximage-1.0.4 test/unit/operator_resize_test.rb
tvdeyen-fleximage-1.0.5 test/unit/operator_resize_test.rb
fleximage-1.0.4 test/unit/operator_resize_test.rb
dougmcbride-fleximage-1.0.3 test/unit/operator_resize_test.rb
fleximage-1.0.3 test/unit/operator_resize_test.rb
fleximage-1.0.2 test/unit/operator_resize_test.rb
fleximage-1.0.1 test/unit/operator_resize_test.rb
fleximage-1.0.0 test/unit/operator_resize_test.rb