Remove mock from cocoapods_validator_test (#77991)

This commit is contained in:
Jenn Magder
2021-03-12 19:14:05 -08:00
committed by GitHub
parent e7f95b4a00
commit c3d0f60407
3 changed files with 22 additions and 31 deletions

View File

@@ -71,6 +71,9 @@ enum CocoaPodsStatus {
brokenInstall,
}
String get cocoaPodsMinimumVersion => '1.9.0';
String get cocoaPodsRecommendedVersion => '1.10.0';
/// Cocoapods is a dependency management solution for iOS and macOS applications.
///
/// Cocoapods is generally installed via ruby gems and interacted with via
@@ -111,9 +114,6 @@ class CocoaPods {
Future<String> _versionText;
String get cocoaPodsMinimumVersion => '1.9.0';
String get cocoaPodsRecommendedVersion => '1.10.0';
Future<bool> get isInstalled =>
_processUtils.exitsHappy(<String>['which', 'pod']);

View File

@@ -52,7 +52,7 @@ class CocoaPodsValidator extends DoctorValidator {
status = ValidationType.partial;
final String currentVersionText = await _cocoaPods.cocoaPodsVersionText;
messages.add(ValidationMessage.hint(
_userMessages.cocoaPodsOutdated(currentVersionText, _cocoaPods.cocoaPodsRecommendedVersion, noCocoaPodsConsequence, cocoaPodsInstallInstructions)));
_userMessages.cocoaPodsOutdated(currentVersionText, cocoaPodsRecommendedVersion, noCocoaPodsConsequence, cocoaPodsInstallInstructions)));
}
}