test_configuration.rb

znmud-0.0.1/test/test_configuration.rb · 557 B

From the archive znmud-minimal-0.0.1.tar.gz

Download the archive   « Back to the archive contents

# Code Generated by ZenTest v. 2.3.0
#                 classname: asrt / meth =  ratio%
#                    Filter:    3 /    4 =  75.00%

unless defined? $ZENTEST and $ZENTEST
require 'test/unit'
require 'utility/configuration'
require 'utility/log'
require 'flexmock'
end

class A
  configuration
  logger
end


class TestConfiguration < Test::Unit::TestCase
  def test_class_instance
    a = A.new
    a.log.info a.options
  end

  def test_options
    a = A.new
    assert('testdb.yaml',a.options['dbfile'])
  end
end



Site Stats

Snippets: 1791
Codebases: 571