…1.8.7 Since the require path is different simple_test file will be loaded twice in Ruby 1.8.7, and the suite then fails with duplicated test names being defined. The solution for now is to require the file with full path, which mimics how rake requires the files and thus only loads it once. This seems to work with 1.8.7 and 1.9.3, but can be dropped as soon as 1.8.7 support is removed.
So that the base config/cleanup works as expected.
Commit 12aa0f0 introduced a bug, where if `Fallbacks` module is included in a class that doesnt define `translations` the code would fail. This is a pretty common scenario, for instance when the backend is a `Chain`. Also this was pretty common case to fail in rails, as its include Fallbacks in the I18n.backend, like this: ``` I18n.backend.class.send(:include, I18n::Backend::Fallbacks) ``` This stops using the `translations` method in the fallbacks, and instead ignores `I18n::InvalidLocale` errors. [fixes #238] [fixes #258] [fixes #259]
Fallback to test/unit in case minitest is not available, which should be necessary for Ruby 1.8.7 only.
Rather than extending the base Test::Unit::TestCase, simply create our own test case and add methods to it, and make sure we inherit from this new test case everywhere. Also make sure to call `super` on the teardown method.
Refactor script a bit, improve output.
BUNDLE_GEMFILE needs the full path to work properly. Load all custom Gemfiles rather than a fixed list, so adding/removing files from the gemfiles/ folder just works.