diff options
author | Luke Kanies <luke@madstop.com> | 2005-04-19 06:14:34 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-04-19 06:14:34 +0000 |
commit | 371235bc1d5d2f260106444d44dfbff14978b020 (patch) | |
tree | 5f53dbf0be398ed76c3592a0bb92a136a431369c /test | |
parent | 7deba97509ec91885d76e0d909287a7553c995d8 (diff) | |
download | puppet-371235bc1d5d2f260106444d44dfbff14978b020.tar.gz puppet-371235bc1d5d2f260106444d44dfbff14978b020.tar.xz puppet-371235bc1d5d2f260106444d44dfbff14978b020.zip |
reorganizing the FileType/FileRecord into a base class (TypeGenerator) and basing them off it
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@192 980ebf18-57e1-0310-9a29-db15c13687c0
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 } |