Class: TestInformatics

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/informatics/test/test_informatics.rb

Instance Method Summary collapse

Instance Method Details

#setupObject


5
6
7
8
# File 'lib/informatics/test/test_informatics.rb', line 5

def setup
  @hash = { 'KEY' => 'VALUE' }
  @o = Informatics::Support::Options.collect(@hash)
end

#test_collectObject


14
15
16
# File 'lib/informatics/test/test_informatics.rb', line 14

def test_collect
  assert_equal @hash, @o.options
end

#test_first_keyObject


18
19
20
# File 'lib/informatics/test/test_informatics.rb', line 18

def test_first_key
  assert_equal 'KEY', @o.first_key
end

#test_first_valueObject


22
23
24
# File 'lib/informatics/test/test_informatics.rb', line 22

def test_first_value
  assert_equal 'VALUE', @o.first_value
end

#test_newObject


10
11
12
# File 'lib/informatics/test/test_informatics.rb', line 10

def test_new
  assert_kind_of Informatics::Support::Options, @o
end