diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/types/tc_filetype.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/types/tc_filetype.rb b/test/types/tc_filetype.rb index 59d5eb946..5bd8aa415 100644 --- a/test/types/tc_filetype.rb +++ b/test/types/tc_filetype.rb @@ -5,8 +5,8 @@ if __FILE__ == $0 end require 'blink' -require 'blink/type' -require 'blink/type/filetype' +require 'blink/type/typegen/filetype' +require 'blink/type/typegen/filerecord' require 'test/unit' # $Id$ @@ -15,10 +15,10 @@ class TestFileType < Test::Unit::TestCase def setup Blink[:debug] = 1 - @passwdtype = Blink::FileType["passwd"] + @passwdtype = Blink::Type::FileType["passwd"] if @passwdtype.nil? assert_nothing_raised() { - @passwdtype = Blink::FileType.newtype( + @passwdtype = Blink::Type::FileType.newtype( :name => "passwd", :recordsplit => ":", :fields => %w{name password uid gid gcos home shell}, @@ -41,7 +41,7 @@ class TestFileType < Test::Unit::TestCase assert(file.insync?) contents = "" - File.open("/etc/passwd") { |ofile| + ::File.open("/etc/passwd") { |ofile| ofile.each { |line| contents += line } |