Sha256: 3eef7e11432cadce407bd3daf2e699daca0cc666bc42614e20837c3cfe609438

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

require 'helper'
require 'csd/application/minisip'

class TestDir < Test::Unit::TestCase
  
  include CSD
  
  context "The Minisip application" do
  
    setup do
      Options.clear
      @app = Application::Minisip::Base.new
    end

    teardown do
    end
    
    should "respond to valid actions" do
      assert @app.respond_to?(:compile)
    end
    
    should "know how to identify a subset of libraries with --only" do
      Options.only = nil
      assert_equal Application::Minisip::Base::LIBRARIES, @app.libraries
      Options.only = %w{ libmcrypto }
      assert_equal %w{ libmcrypto }, @app.libraries
      Options.only = %w{ does-not-exist }
      assert @app.libraries == []
      Options.only = Application::Minisip::Base::LIBRARIES
      assert_equal Application::Minisip::Base::LIBRARIES, @app.libraries
      Options.only = %w{ minisip libmutil }
      assert_equal %w{ libmutil minisip }, @app.libraries
    end
    
    context "when downloading source code" do
  
      should "dummy" do
        assert true
      end
      
    end # context "when downloading source code"
  
  end # context "The Minisip application"
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csd-0.1.8 test/application/test_minisip.rb
csd-0.1.7 test/application/test_minisip.rb
csd-0.1.6 test/application/test_minisip.rb