# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/file/self/read_list.rb # # Extracted Wed Aug 23 18:22:52 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/file/self/read_list.rb' require 'test/unit' # mock behavior for file access class File def self.mock_read( content ) @content = content end def self.read( fpath ) @content end end class TC_READ_LIST < Test::Unit::TestCase def test_read_list f = File.mock_read("A\nB\nC") s = File.read_list( f ) r = ['A','B','C'] assert_equal( r, s ) end end