Remove useless begin/end [ci skip]

This commit is contained in:
Carlos Antonio da Silva 2012-02-09 11:33:34 -02:00
parent 08f2badc1e
commit e6ddf8d097
1 changed files with 5 additions and 7 deletions

View File

@ -1,12 +1,10 @@
module MiscHelpers
def store_translations(locale, translations, &block)
begin
I18n.backend.store_translations locale, translations
yield
ensure
I18n.reload!
I18n.backend.send :init_translations
end
I18n.backend.store_translations locale, translations
yield
ensure
I18n.reload!
I18n.backend.send :init_translations
end
def assert_no_select(selector, value = nil)