Debian & I18n.load_path & tests: A clever way around?
(To begin with: I think this is the last big issue regarding the Debian packaging.)
I'm executing several tests in different environments in Debian: Some tests just against the upstream src code, and, one test against the installed package. As I see all of this currently, the last big, unresolved issue for now is the I18n.load_path
: While for some tests the current += Dir["#{rootdir}/locales/*.yml"]
is fine and works as expected, I need this path to "somehow become" /usr/share/schleuder/locales/*.yml
for the last test. I've tried the last minutes to come up with some clever ideas, however, actually, I'm still missing a good idea. Any opinion, feedback, hack, clever idea much appreciated! Thanks!
(One idea, but this feels really, really hackish: I thought about using an env var for this, which I {c,w}ould overwrite depending on a conditional: If /etc/schleuder
does exist, use $this, if not, $that.)