Sha256: 28d73922b5eb25eee58d1bf7c0560b711562911f182628f238185cd3112ddede

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

# -*- coding: utf-8 -*-
# vim:ft=ruby:enc=utf-8

require File.dirname(__FILE__)+'/helper'

class TestBase < Test::Unit::TestCase
  test_presence ToPass::Base

  def test_usage
    assert_nothing_raised do
      pwd = ToPass::Base.new("Da steht ein Pferd auf dem Flur", 'basic_de').to_s
      assert_equal "Ds1P@dF", pwd
    end
  end

  def test_version
    assert_equal Pathname.new("#{File.dirname(__FILE__)}/../VERSION").expand_path.read.chomp, ToPass::VERSION
  end

  def test_appname
    assert_equal "to_pass", ToPass::APP_NAME
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_pass-0.5.0 test/test_base.rb
to_pass-0.4.0 test/test_base.rb
to_pass-0.2.4 test/test_base.rb