MagLev/maglev — Issue #90: Can't remove partially loaded constants
Author: jc00ke
Created: 2011-10-31 23:49:20+00:00
State: open

When running the tests on Padrino, I found this one that fails

```
∴ ruby -I"lib:test" -I"/home/jesse/.rvm/gems/maglev-head/gems/rake-0.9.2.2/lib" "/home/jesse/.rvm/gems/maglev-head/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/test_dependencies.rb"
Run options: --seed 48132

# Running tests:

../home/jesse/.rvm/gems/maglev-head/gems/minitest-2.6.2/lib/minitest/unit.rb: 1: gdiff: not found
diff: missing operand after `diff'
diff: Try `diff --help' for more information.
F

Finished tests in 2.636936s, 1.1377 tests/s, 1.8961 assertions/s.

1) Failure:
test_0003_remove_partially_loaded_constants(Dependencies::when we require a dependency that have another dependency) [/home/jesse/projects/padrino-framework/padrino-core/test/test_dependencies.rb:41]:
Expected: ["name"]
Actual: []

3 tests, 5 assertions, 1 failures, 0 errors, 0 skips
```

You can find the failing test [here](https://github.com/padrino/padrino-framework/blob/master/padrino-core/test/test_dependencies.rb#L32) and check out the [fixtures](https://github.com/padrino/padrino-framework/tree/master/padrino-core/test/fixtures/dependencies/circular)