Remove useless begin/end [ci skip]
This commit is contained in:
parent
08f2badc1e
commit
e6ddf8d097
|
@ -1,13 +1,11 @@
|
|||
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
|
||||
end
|
||||
|
||||
def assert_no_select(selector, value = nil)
|
||||
assert_select(selector, :text => value, :count => 0)
|
||||
|
|
Loading…
Reference in New Issue