Sha256: 1e5da1ce04d8730ef2303704fc5de4d93de363c977c846e824f28e4c42a6bda5

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

require File.join( File.dirname(__FILE__), "..", "test_helper")

# ralbum
require 'ralbum/cli/cli_ralbum'

class TestCliRAlbum < Test::Unit::TestCase

  def test_list_skins
    out = with_stdout_captured do
      args = "-l"
      CliRAlbum.new.parse_args( args.split )
    end
    # puts out

    msg =<<EOS
Available skins:
cgi	 by 'gf' cgi skin description
gfold	 by 'gf' gfold skin description
js	 by 'gf' js skin description
test_erb	 by 'gf' skin used only for test erb skin_engine
test_kwartz	 by 'gf' skin used only for test kwartz skin engine
EOS
    assert_equal msg, out
  end

  def test_version
    out = with_stdout_captured do
      args = %w{--version}
      CliRAlbum.new.parse_args(args)
    end
    version = File.open( File.join($RALBUM_HOME, "VERSION") ).read
    assert_match version, out
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gf-ralbum-0.0.5 test/ralbum/cli/tc_cli_ralbum.rb