# File test/test_inifile.rb, line 130 def test_each_section expected = [ 'section_one', 'section_two', 'section three', 'section_four', 'section_five' ].sort ary = [] @ini_file.each_section {|section| ary << section} assert_equal expected, ary.sort ary = [] ::IniFile.new('temp.ini').each_section {|section| ary << section} assert_equal [], ary end