Sha256: 847e88fbb0e973cd9b6907b47a141adaacd1ac03c50a7bdc4d2e7b8d92213c97
Contents?: true
Size: 874 Bytes
Versions: 3
Compression:
Stored size: 874 Bytes
Contents
require "test/unit" require_relative "../../lib/teuton/utils/application" class ApplicationTest < Test::Unit::TestCase def setup @app = Application.instance @app.reset end def test_init_params assert_equal ".", @app.letter[:good] assert_equal "F", @app.letter[:bad] assert_equal "?", @app.letter[:error] assert_equal " ", @app.letter[:none] assert_equal "var", @app.output_basedir assert_equal false, @app.debug assert_equal true, @app.verbose assert_equal true, @app.global == {} end def test_quiet? @app.verbose = false assert_equal false, @app.verbose assert_equal true, Application.instance.quiet? @app.verbose = true assert_equal true, @app.verbose assert_equal false, Application.instance.quiet? @app.options["quiet"] = true assert_equal true, Application.instance.quiet? end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teuton-2.9.2 | lib/teuton/deprecated/application_test.rb |
teuton-2.9.1 | lib/teuton/deprecated/application_test.rb |
teuton-2.9.0 | lib/teuton/deprecated/application_test.rb |