Sha256: ea08fd5915e0113040b9f4f28f02728e698c30940639c072403ec445e40a3b49
Contents?: true
Size: 1.02 KB
Versions: 21
Compression:
Stored size: 1.02 KB
Contents
require 'pathname' require Pathname.new( File.dirname(__FILE__)).join( '../test_helper' ).cleanpath require 'build-tool/configuration' require 'build-tool/commands' require 'build-tool/commands/build' class TestBuildCommand < ::Test::Unit::TestCase def test_default_values cmd = BuildTool::Commands::Build.new( BuildTool::Configuration.new(nil) ) assert_equal cmd.name, "build" assert_equal cmd.description, "Build a module." # clean is off by default assert_equal false, cmd.instance_variable_get( "@clean" ) # configure is off by default assert_equal false, cmd.instance_variable_get( "@configure" ) # from-scratch is off by default assert_equal false, cmd.instance_variable_get( "@from_scratch" ) # install is off by default assert_equal true, cmd.instance_variable_get( "@install" ) # reconfigure is off by default assert_equal false, cmd.instance_variable_get( "@reconfigure" ) # update is off by default assert_equal false, cmd.instance_variable_get( "@update" ) end end
Version data entries
21 entries across 21 versions & 1 rubygems