@@ -518,23 +518,23 @@ def load_file(file)
518518 expect ( Fastlane ::Actions ) . to have_received ( :sh ) . with ( "git" , "commit" , "-m" , "Update embedded files" )
519519 end
520520
521- it "returns true when TDS performance tests fail" do
521+ it "returns true when TDS performance tests fail" do
522522 allow ( Fastlane ::Actions ) . to receive ( :sh ) . with ( "./scripts/update_embedded.sh" ) . and_return ( "" )
523523 git_status_output = "On branch main\n modified: Core/trackerData.json\n "
524524 allow ( Fastlane ::Actions ) . to receive ( :sh ) . with ( "git" , "status" ) . and_return ( git_status_output )
525525 allow ( Fastlane ::Actions ) . to receive ( :sh ) . with ( "git" , "add" , "Core/trackerData.json" ) . and_return ( "" )
526526 allow ( Fastlane ::Actions ) . to receive ( :sh ) . with ( "git" , "commit" , "-m" , "Update embedded files" ) . and_return ( "" )
527527 allow ( other_action ) . to receive ( :tds_perf_test ) . and_return ( false )
528528 allow ( other_action ) . to receive ( :ensure_git_status_clean )
529-
529+
530530 result = described_class . update_embedded_files ( platform , other_action )
531-
531+
532532 expect ( result ) . to eq ( true )
533533 expect ( Fastlane ::Actions ) . to have_received ( :sh ) . with ( "git" , "status" )
534534 expect ( Fastlane ::Actions ) . to have_received ( :sh ) . with ( "git" , "add" , "Core/trackerData.json" )
535535 expect ( Fastlane ::Actions ) . to have_received ( :sh ) . with ( "git" , "commit" , "-m" , "Update embedded files" )
536536 end
537-
537+
538538 it "returns false when TDS performance tests pass" do
539539 allow ( Fastlane ::Actions ) . to receive ( :sh ) . with ( "./scripts/update_embedded.sh" ) . and_return ( "" )
540540 git_status_output = "On branch main\n modified: Core/trackerData.json\n "
@@ -545,7 +545,7 @@ def load_file(file)
545545 allow ( other_action ) . to receive ( :ensure_git_status_clean )
546546
547547 result = described_class . update_embedded_files ( platform , other_action )
548-
548+
549549 expect ( result ) . to eq ( false )
550550 expect ( Fastlane ::Actions ) . to have_received ( :sh ) . with ( "git" , "status" )
551551 expect ( Fastlane ::Actions ) . to have_received ( :sh ) . with ( "git" , "add" , "Core/trackerData.json" )
0 commit comments