Sha256: aaa5afc495331541a1210fe68c2b321b5b9cba9dfdc99fbe1a832a940d16eeee

Contents?: true

Size: 834 Bytes

Versions: 4

Compression:

Stored size: 834 Bytes

Contents

#!/usr/bin/env ruby -w

require 'rmagick'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require_relative 'appearance_assertion'

class AppearanceMontageUT < Test::Unit::TestCase
  include AppearanceAssertion

  def test_color
    imagelist = Magick::ImageList.new(IMAGES_DIR + '/Flower_Hat.jpg')

    new_imagelist = imagelist.montage do
      self.border_width = 100
      self.border_color = 'red'
      self.background_color = 'blue'
      self.matte_color = 'yellow'
      self.frame = '10x10'
      self.gravity = Magick::CenterGravity
    end

    # montage ../../doc/ex/images/Flower_Hat.jpg -border 100x -bordercolor red -mattecolor yellow -background blue -frame 10x10 -gravity Center expected/montage_border_color.jpg
    assert_same_image('expected/montage_border_color.jpg', new_imagelist.first)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rmagick-4.1.0.rc2 test/appearance/Montage.rb
rmagick-4.1.0.rc1 test/appearance/Montage.rb
rmagick-4.0.0 test/appearance/Montage.rb
rmagick-3.2.0 test/appearance/Montage.rb