Sha256: bbe57e636ea6120941e0e6069761e894bc3436222fb737b11934ef2421d1b981

Contents?: true

Size: 587 Bytes

Versions: 25

Compression:

Stored size: 587 Bytes

Contents

require 'helper'

class TestApplications < Test::Unit::TestCase

  include CSD

  context "The CSD class" do
    
    setup do
      Options.clear
    end
    
    should "by default choose the CLI as user interface" do
      assert_instance_of UserInterface::CLI, CSD.ui
    end

    should "perform no caching of the UI class in testmode" do
      Options.testmode = true
      Options.silent = false
      assert_instance_of UserInterface::CLI, CSD.ui
      Options.silent = true
      assert_instance_of UserInterface::Silent, CSD.ui
    end
   
  end # context "The CSD class"

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
csd-0.4.3 test/functional/test_csd.rb
csd-0.4.2 test/functional/test_csd.rb
csd-0.4.1 test/functional/test_csd.rb
csd-0.4.0 test/functional/test_csd.rb
csd-0.3.7 test/functional/test_csd.rb
csd-0.3.6 test/functional/test_csd.rb
csd-0.3.5 test/functional/test_csd.rb
csd-0.3.4 test/functional/test_csd.rb
csd-0.3.3 test/functional/test_csd.rb
csd-0.3.2 test/functional/test_csd.rb
csd-0.3.1 test/functional/test_csd.rb
csd-0.3.0 test/functional/test_csd.rb
csd-0.2.2 test/functional/test_csd.rb
csd-0.2.1 test/functional/test_csd.rb
csd-0.2.0 test/functional/test_csd.rb
csd-0.1.18 test/functional/test_csd.rb
csd-0.1.17 test/functional/test_csd.rb
csd-0.1.16 test/functional/test_csd.rb
csd-0.1.15 test/functional/test_csd.rb
csd-0.1.14 test/functional/test_csd.rb