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.1.13 test/functional/test_csd.rb
csd-0.1.12 test/functional/test_csd.rb
csd-0.1.11 test/functional/test_csd.rb
csd-0.1.10 test/functional/test_csd.rb
csd-0.1.9 test/functional/test_csd.rb