Summary: | dev-ruby/fakefs fails tests with ruby 1.9 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | binki |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
fakefs-0.2.1-ruby19-r1.patch |
Description
Diego Elio Pettenò (RETIRED)
2010-10-13 01:02:01 UTC
Created attachment 250411 [details]
Build log
Created attachment 269429 [details, diff]
fakefs-0.2.1-ruby19-r1.patch
If I replace the existing fakefs-0.2.1-ruby19.patch with this attachment, the tests are successfull.
The error detailed in the build.log is due to '.' not being in ruby's search path in ruby-1.9:
--- a/Rakefile
+++ b/Rakefile
@@ -1 +1,3 @@
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__))
+
desc "Run tests"
The next error appears to be ruby-1.9 being more picky about function names(?). This error only shows up if the Rakefile is first fixed, of course:
``
1) Error:
test_can_check_size?(FakeFSTest):
ArgumentError: wrong number of arguments (0 for 1)
/var/tmp/portage/dev-ruby/fakefs-0.2.1-r1/work/ruby19/fakefs-0.2.1/test/fakefs_test.rb:291:in `test_can_check_size?'
''
Fixed with the last part of the patch:
--- a/test/fakefs_test.rb
+++ b/test/fakefs_test.rb
@@ -290,3 +290,3 @@
- def test_can_check_size?_of_empty_file
+ def test_can_check_size_of_empty_file
path = '/path/to/file.txt'
I've updated the patch file in the tree with your version. Thanks! |