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

Version Path
build-tool-0.5.3 test/commands/test_build.rb
build-tool-0.5.2 test/commands/test_build.rb
build-tool-0.4.6 test/commands/test_build.rb
build-tool-0.5.1 test/commands/test_build.rb
build-tool-0.4.5 test/commands/test_build.rb
build-tool-0.5.0 test/commands/test_build.rb
build-tool-0.4.4 test/commands/test_build.rb
build-tool-0.4.3 test/commands/test_build.rb
build-tool-0.4.2 test/commands/test_build.rb
build-tool-0.4.1 test/commands/test_build.rb
build-tool-0.4.0 test/commands/test_build.rb
build-tool-0.3.3 test/commands/test_build.rb
build-tool-0.3.2 test/commands/test_build.rb
build-tool-0.3.1 test/commands/test_build.rb
build-tool-0.3 test/commands/test_build.rb
build-tool-0.2 test/commands/test_build.rb
build-tool-0.1.4 test/commands/test_build.rb
build-tool-0.1.3 test/commands/test_build.rb
build-tool-0.1.2 test/commands/test_build.rb
build-tool-0.1.0 test/commands/test_build.rb