As I was doing the test for FileOps, I ran into couple spec file problems.
join_spec:
changed: couple of places instead of comparison operator ==, it has assignment
operator =. I changed it and is in the uploaded file.
Need to change: Windows use \ for directory seperation, while linux uses /, all
the test cases use / instead of \. We may need to change the rake to be more
specific to the platform to make the test pass properly.
utime_spec: There was no rspec for this method. I wrote one for testing based
off of atime. Attached the one I used.
zero_spec:
In windows following is not valid
File.zero?(''NUL'').should == true
since NUL will be treated file, this will throw exception that file not found.
Also the following is not a valid file name in windows environment
file = ''/tmp/i_exist''
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080513/abb55111/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: join_spec.rb
Type: application/octet-stream
Size: 2773 bytes
Desc: not available
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080513/abb55111/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utime_spec.rb
Type: application/octet-stream
Size: 1168 bytes
Desc: not available
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080513/abb55111/attachment-0001.obj>