[Rake-devel] testtasks.rb failure

Berger, Daniel Daniel.Berger at qwest.com
Mon May 2 15:02:51 EDT 2005


Hi all,

I add this test to testtasks.rb for future use if you like:

def test_directory_win32
   desc "WIN32 DESC"
   directory 'c:\testdata\a\b\c'
   assert_equal FileTask, Task['c:\testdata'].class
   assert_equal FileTask, Task['c:\testdata\a'].class
   assert_equal FileTask, Task['c:\testdata\a\b\c'].class
   assert_nil             Task['c:\testdata'].comment
   assert_equal "WIN32 DESC",   Task['c:\testdata\a\b\c'].comment
   assert_nil             Task['c:\testdata\a\b'].comment
   verbose(false) {
      Task['c:\testdata\a\b'].invoke
   }
   assert File.exist?('c:\testdata\a\b')
   assert ! File.exist?('c:\testdata\a\b\c')
end

After applying Lionel's patch, all tests pass for testtasks.rb:

C:\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4\test>ruby testtasks.rb
Loaded suite testtasks
Started
..............................
Finished in 3.705 seconds.

30 tests, 77 assertions, 0 failures, 0 errors

Lionel, are you still seeing failures?

Regards,

Dan



More information about the Rake-devel mailing list