Sha256: b9e7bf117356dbde6f7276708d8594bda23bf4f64cab7c83aa38a14921bab927

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require 'test/unit'
require File.expand_path('../../lib/mini_magick', __FILE__)

class CommandBuilderTest < Test::Unit::TestCase
  include MiniMagick

  def test_basic
    c = CommandBuilder.new
    c.resize "30x40"
    assert_equal "-resize 30x40", c.args.join(" ")
  end

  def test_complicated
    c = CommandBuilder.new
    c.resize "30x40"
    c.input 1, 3, 4
    c.lingo "mome fingo"
    assert_equal "-resize 30x40 -input 1 3 4 -lingo mome fingo", c.args.join(" ")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hcatlin-mini_magick-1.3.1 test/command_builder_test.rb