Remove useless begin/end [ci skip]
This commit is contained in:
parent
08f2badc1e
commit
e6ddf8d097
|
@ -1,12 +1,10 @@
|
||||||
module MiscHelpers
|
module MiscHelpers
|
||||||
def store_translations(locale, translations, &block)
|
def store_translations(locale, translations, &block)
|
||||||
begin
|
I18n.backend.store_translations locale, translations
|
||||||
I18n.backend.store_translations locale, translations
|
yield
|
||||||
yield
|
ensure
|
||||||
ensure
|
I18n.reload!
|
||||||
I18n.reload!
|
I18n.backend.send :init_translations
|
||||||
I18n.backend.send :init_translations
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def assert_no_select(selector, value = nil)
|
def assert_no_select(selector, value = nil)
|
||||||
|
|
Loading…
Reference in New Issue