Method: Snapshot::Runner.path_to_helper_file_from_gem

Defined in:
snapshot/lib/snapshot/runner.rb

.path_to_helper_file_from_gemObject

Depending on the Xcode version, the return value is different



97
98
99
100
101
102
103
104
105
# File 'snapshot/lib/snapshot/runner.rb', line 97

def self.path_to_helper_file_from_gem
  runner_dir = File.dirname(__FILE__)

  if Helper.xcode_at_least?("9.0")
    return File.expand_path('../assets/SnapshotHelper.swift', runner_dir)
  else
    return File.expand_path('../assets/SnapshotHelperXcode8.swift', runner_dir)
  end
end