Hi Sebastian
On Fri, May 01, 2015 at 08:51:27PM +0200, Sebastian Boehm wrote:
> I know, I should probably have mentioned this somewhere. Unfortunately
> fakefs relies on rspec 3, so the tests do not currently work with
> Debian's version of ruby-rspec (2.14). (3.2 is in experimental, but
> I'd rather wait for it to go to unstable/testing first.)
ok.
> I added a Rakefile with a commented rspec task that we can use as soon
> as rspec is upgraded.
There is a small detail I neglected: for some reason, the rake command
provided by the interpreter will prefer to use its version of minitest
instead of the installed ruby-minitest package (which is contrary to our
expectations, that installed packages should take precedence over the
interperter's libraries). I got the following error when building the
package:
Running tests for ruby2.1 using debian/ruby-tests.rake ...
/usr/lib/ruby/2.1.0/minitest/unit.rb:26:in `const_missing': uninitialized constant MiniTest::Test (NameError)
from /build/ruby-fakefs-87e0Eg/ruby-fakefs-0.6.7/test/dir/tempfile_test.rb:5:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rake/rake_test_loader.rb:15:in `block in <main>'
from /usr/lib/ruby/2.1.0/rake/rake_test_loader.rb:4:in `select'
from /usr/lib/ruby/2.1.0/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
I added rake to the build dependencies and everything is now fine.
Check:
http://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-fakefs.git/commit/?id=17d527e
I uploaded the package.
Cheers,
Cédric
Attachment:
signature.asc
Description: Digital signature