spec/spec_helper.rb
# Revert the fixture to the original one
Revert the fixture to the original one
Revert the fixture to the original one
def revert_fixtures
  source = "/tmp/fastlane/fixtures"
  destination = "./spec"
  [
    "#{destination}/fixtures/app/build.gradle",
    "#{destination}/fixtures/kts/build.gradle.kts"
  ].each do |f|
    FileUtils.rm(f)
  end
  FileUtils.cp_r(source, destination)
  FileUtils.rm_r(source)
end
def revert_fixtures source = "/tmp/fastlane/fixtures" destination = "./spec" [ "#{destination}/fixtures/app/build.gradle" , "#{destination}/fixtures/kts/build.gradle.kts" ] . each do | f | FileUtils . rm ( f ) end FileUtils . cp_r ( source , destination ) FileUtils . rm_r ( source ) end
Revert the fixture to the original one
Revert the fixture to the original one