You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sphinx_environment.rb
    path of file: ./repos/hitobito/spec/support
    
    the code of the file until where you have to start completion: # encoding: utf-8

#  Copyright (c) 2012-2013, Jungwacht Blauring Schweiz. This file is part of
#  hitobit
    
def init_sphinx_before_all(tables)
  obj = self
  before(:all) do
    obj.use_transactional_tests = false
    DatabaseCleaner.strategy = :truncation, { only: tables }
    ThinkingSphinx::Test.init
  end
end