# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/file/self/read_list.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # 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