Simpler calls to *_translatable shared specs
Enable translations interface setting inside shared specs when needed. Co-Authored-By: javierm <javim@elretirao.net>
This commit is contained in:
committed by
voodoorai2000
parent
73563e5d86
commit
264b3f0f82
@@ -46,7 +46,11 @@ shared_examples "edit_translatable" do |factory_name, path_name, input_fields, t
|
||||
|
||||
before do
|
||||
login_as(user)
|
||||
translatable.update(author: user) if front_end_path_to_visit?(path_name)
|
||||
|
||||
if front_end_path_to_visit?(path_name)
|
||||
Setting["feature.translation_interface"] = true
|
||||
translatable.update(author: user)
|
||||
end
|
||||
end
|
||||
|
||||
context "Manage translations" do
|
||||
|
||||
Reference in New Issue
Block a user