defunkt/fakefs — Issue #119: Test suite results differ when executed by Rake and by plain Ruby
Author: voxik
Created: 2012-02-15 09:26:23+00:00
State: open

Hello,

I am wondering why the test suite executed by rake

```
# rake test
sdoc support not enabled. Please gem install sdoc-helpers.
Run options:

# Running tests:

...............................................................................................................................................................F................................F......................................................................................................................................................................................................................................................

Finished tests in 0.375381s, 1169.4788 tests/s, 1574.4008 assertions/s.

1) Failure:
test_pathname_exists_returns_correct_value(FakeFSTest) [/builddir/build/BUILD/rubygem-fakefs-0.4.0/usr/share/gems/gems/fakefs-0.4.0/test/fakefs_test.rb:1741]:
Failed assertion, no message given.

2) Failure:
test_should_have_method_advise_from_real_file_class(FakeFSTest) [/builddir/build/BUILD/rubygem-fakefs-0.4.0/usr/share/gems/gems/fakefs-0.4.0/test/fakefs_test.rb:789]:
Failed assertion, no message given.

439 tests, 591 assertions, 2 failures, 0 errors, 0 skips
```

shows different number of examples then test suite executed from command-line:

```
# ruby -I. -Itest -e "Dir['test/**/*_test.rb'].each { |file| require file }"
Run options:

# Running tests:

...............................................................................................................................................................F................................F.............................................................................................................................................................................................................................................

Finished tests in 0.363796s, 1181.9812 tests/s, 1599.7978 assertions/s.

1) Failure:
test_pathname_exists_returns_correct_value(FakeFSTest) [/builddir/build/BUILD/rubygem-fakefs-0.4.0/usr/share/gems/gems/fakefs-0.4.0/test/fakefs_test.rb:1741]:
Failed assertion, no message given.

2) Failure:
test_should_have_method_advise_from_real_file_class(FakeFSTest) [/builddir/build/BUILD/rubygem-fakefs-0.4.0/usr/share/gems/gems/fakefs-0.4.0/test/fakefs_test.rb:789]:
Failed assertion, no message given.

430 tests, 582 assertions, 2 failures, 0 errors, 0 skips
```