snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb in fastlane-2.132.0.beta.20190929200020 vs snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb in fastlane-2.132.0.beta.20190930200026
- old
+ new
@@ -188,10 +188,10 @@
name = summary.data.first[:run_destination_name]
if summary.data.first[:number_of_tests] == 0
hash[name] = ["No tests were executed"]
else
tests = Array(summary.data.first[:tests])
- hash[name] = tests.map { |test| Array(test[:failures]).map { |failure| failure[:failure_message] } }.flatten
+ hash[name] = tests.flat_map { |test| Array(test[:failures]).map { |failure| failure[:failure_message] } }
end
end
end
def xcodebuild_log_path(language: nil, locale: nil)