spec/integration_2.rb
def copy_files(folder)
  source = File.expand_path("../integration/#{folder}/before", __FILE__)
  destination = TMP_DIR + folder
  destination.mkpath
  FileUtils.cp_r(Dir.glob("#{source}/*"), destination)
end
# Copies the before subdirectory of the given tests folder in the temporary
# directory.
#
# @param  [String] folder
#         the name of the folder of the tests.
#
Copies the before subdirectory of the given tests folder in the temporary
directory.
Copies the before subdirectory of the given tests folder in the temporary directory .
def copy_files(folder)
  source = File.expand_path("../integration/#{folder}/before", __FILE__)
  destination = TMP_DIR + folder
  destination.mkpath
  FileUtils.cp_r(Dir.glob("#{source}/*"), destination)
end
def copy_files ( folder ) source = File . expand_path ( "../integration/#{folder}/before" , __FILE__ ) destination = TMP_DIR + folder destination . mkpath FileUtils . cp_r ( Dir . glob ( "#{source}/*" ) , destination ) end
Copies the before subdirectory of the given tests folder in the temporary
directory.
Copies the before subdirectory of the given tests folder in the temporary directory .
folder
folder the name of the folder of the tests.
folder the name of the folder of the tests .