Fix most of Hound offenses

This commit is contained in:
Senén Rodero Rodríguez
2019-02-19 10:43:48 +01:00
committed by voodoorai2000
parent 522b1c9ef7
commit 1565a5a71d
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
maxlength: Budget::Investment.title_max_length,
data: { js_suggest_result: "js_suggest_result",
js_suggest: ".js-suggest",
js_url: suggest_budget_investments_path(@budget) }%>
js_url: suggest_budget_investments_path(@budget) } %>
</div>
<div class="js-suggest" data-locale="<%= translations_form.locale %>"></div>

View File

@@ -556,8 +556,8 @@ describe Budget::Investment do
it "should take into consideration title fallbacks when there is no
translation for current locale" do
english_investment = create(:budget_investment, title: "BBBB")
spanish_investment = Globalize.with_locale(:es) do
create(:budget_investment, title: "BBBB")
Globalize.with_locale(:es) do
I18n.with_locale(:es) do
create(:budget_investment, title: "AAAA")
end