require 'rubygems' 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