Sha256: 339013e08655ca354b9b5475defce1f3ab1659fc9d38474b05445695294b4d71

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 Bytes

Contents

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

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

9 entries across 9 versions & 6 rubygems

Version Path
remvee-mini_magick-1.2.3.2 test/command_builder_test.rb
remvee-mini_magick-1.2.3.3 test/command_builder_test.rb
remvee-mini_magick-1.2.3.4.0 test/command_builder_test.rb
tupalo-mini_magick-1.2.5 test/command_builder_test.rb
mini_magick-1.3.0 test/command_builder_test.rb
hcatlin-mini_magick-1.3.0 test/command_builder_test.rb
edouard-mini_magick-1.2.6 test/command_builder_test.rb
dsturnbull-mini_magick-1.2.6 test/command_builder_test.rb
mini_magick-1.2.5 test/command_builder_test.rb