Class: TestInformatics
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- TestInformatics
- Defined in:
- lib/informatics/test/test_informatics.rb
Instance Method Summary collapse
- #setup ⇒ Object
- #test_collect ⇒ Object
- #test_first_key ⇒ Object
- #test_first_value ⇒ Object
- #test_new ⇒ Object
Instance Method Details
#setup ⇒ Object
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_collect ⇒ Object
15 16 17 |
# File 'lib/informatics/test/test_informatics.rb', line 15 def test_collect assert_equal @hash, @o. end |
#test_first_key ⇒ Object
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_value ⇒ Object
23 24 25 |
# File 'lib/informatics/test/test_informatics.rb', line 23 def test_first_value assert_equal 'VALUE', @o.first_value end |
#test_new ⇒ Object
11 12 13 |
# File 'lib/informatics/test/test_informatics.rb', line 11 def test_new assert_kind_of Informatics::Support::Options, @o end |