Get rid of broken I18n locales configuration for the tests #2168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue#
No-Story
Description:
This patch simply removes four lines of code from test_helper.rb that is currently not working as expected.
Probably since its very first introduction at 9d47686,
the code
File.expand_path(File.dirname(__FILE__) + '../lib/locales')
seems not to be workingbecause
File.dirname(__FILE__)
normally does not end_with a slash (unless we're on UNIX root directory...!)and so
File.dirname(__FILE__) + '../lib/locales')
compiles to a broken string that doesn't point to a directory,then consequently it fails to load any locale file.
And since it doesn't do anything, we could just safely remove this block of code.
The tests shall still pass without this.