Fix most of Hound offenses
This commit is contained in:
committed by
voodoorai2000
parent
522b1c9ef7
commit
1565a5a71d
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user