glebm/i18n-tasks — pull request #113 by jessieay (2014-12-17 22:06:31+00:00)
Title: Allow relative roots in controllers

* Update `absolutize` method to set controller locales
* Fixes https://github.com/glebm/i18n-tasks/issues/46

* There is one failing spec that I could not figure out. Put a "TODO" comment above it and commented it out. Would appreciate help debugging! Failure output:

```ruby
1) i18n-tasks missing detects missing
Failure/Error: expect(run_cmd :missing).to be_i18n_keys expected_missing_keys
Expected ["en.events.show.success", "en.fn_comment", "en.hash.pattern_missing.a", "en.hash.pattern_missing.b", "en.missing-key-question?.key", "en.missing-key-with-a-dash.key", "en.missing_symbol.key_three", "en.missing_symbol.key_two", "en.missing_symbol_key", "en.only_in_es", "en.present_in_es_but_not_en.a", "en.used_but_missing.key", "es.missing_in_es.a", "es.missing_in_es_plural_1.a", "es.missing_in_es_plural_2.a"], but had ["en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.description", "en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.missing", "en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.summary", "en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.title", "en.events.show.success", "en.fn_comment", "en.hash.pattern_missing.a", "en.hash.pattern_missing.b", "en.missing-key-question?.key", "en.missing-key-with-a-dash.key", "en.missing_symbol.key_three", "en.missing_symbol.key_two", "en.missing_symbol_key", "en.only_in_es", "en.present_in_es_but_not_en.a", "en.used_but_missing.key", "es.missing_in_es.a", "es.missing_in_es_plural_1.a", "es.missing_in_es_plural_2.a"]. Diff:

missing: []
extra: ["en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.description", "en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.missing", "en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.summary", "en..Users.jessieayoung.dev.jessieay.i18n-tasks.tmp.test_codebase.app.views.relative.index.title"]
```