Class: Rex::Parser::Ini::UnitTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- Rex::Parser::Ini::UnitTest
- Defined in:
- lib/rex/parser/ini.rb.ut.rb
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#test_parse ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/rex/parser/ini.rb.ut.rb', line 21 def test_parse ini = Klass.from_s(TestIni) assert_equal('dog', ini['group1']['cat']) assert_equal('frog', ini['group1']['bird']) assert_equal('cake', ini['group2']['salad']) assert_equal(TestIni + "\n", ini.to_s) end |