test/tc_find.rb in file-find-0.1.0 vs test/tc_find.rb in file-find-0.1.1

- old
+ new

@@ -1,13 +1,11 @@ ###################################################################### # tc_find.rb # -# Test case for the File::Find package. +# Test case for the File::Find package. You should run this via the +# 'rake test' task. ###################################################################### -Dir.chdir '..' if File.basename(Dir.pwd) == 'test' -$:.unshift File.join(Dir.pwd, 'lib') - require 'test/unit' require 'fileutils' require 'file/find' class TC_File_Find < Test::Unit::TestCase @@ -19,9 +17,13 @@ File.open(@file1, 'w'){} File.open(@file2, 'w'){} File.symlink(@file1, @link1) @rule1 = File::Find.new(:name => '*.rb') + end + + def test_version + assert_equal('0.1.1', File::Find::VERSION) end def test_path assert_respond_to(@rule1, :path) assert_respond_to(@rule1, :path=)