mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	rename function
This commit is contained in:
		| @@ -26,7 +26,7 @@ func (self *FileSystem) PathNotPresent(path string) { | ||||
| } | ||||
|  | ||||
| // Asserts that the file at the given path has the given content | ||||
| func (self *FileSystem) FileContainsContent(path string, matcher *matcher) { | ||||
| func (self *FileSystem) FileContent(path string, matcher *matcher) { | ||||
| 	self.assertWithRetries(func() (bool, string) { | ||||
| 		_, err := os.Stat(path) | ||||
| 		if os.IsNotExist(err) { | ||||
|   | ||||
| @@ -47,6 +47,6 @@ var DiscardStagedChanges = NewIntegrationTest(NewIntegrationTestArgs{ | ||||
| 			) | ||||
|  | ||||
| 		// the file should have the same content that it originally had, given that that was committed already | ||||
| 		t.FileSystem().FileContainsContent("fileToRemove", Equals("original content")) | ||||
| 		t.FileSystem().FileContent("fileToRemove", Equals("original content")) | ||||
| 	}, | ||||
| }) | ||||
|   | ||||
| @@ -33,7 +33,7 @@ var ExcludeGitignore = NewIntegrationTest(NewIntegrationTestArgs{ | ||||
| 				t.ExpectPopup().Alert().Title(Equals("Error")).Content(Equals("Cannot ignore .gitignore")).Confirm() | ||||
| 			}) | ||||
|  | ||||
| 		t.FileSystem().FileContainsContent(".gitignore", Equals("")) | ||||
| 		t.FileSystem().FileContainsContent(".git/info/exclude", DoesNotContain(".gitignore")) | ||||
| 		t.FileSystem().FileContent(".gitignore", Equals("")) | ||||
| 		t.FileSystem().FileContent(".git/info/exclude", DoesNotContain(".gitignore")) | ||||
| 	}, | ||||
| }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user