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



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

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

#test_collectObject



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

def test_collect
  assert_equal @hash, @o.options
end

#test_first_keyObject



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

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

#test_first_valueObject



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

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

#test_newObject



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

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