(t *testing.T)
| 1143 | } |
| 1144 | |
| 1145 | func TestStartDoneSquashWithUnpushedCommit(t *testing.T) { |
| 1146 | _, configuration := setup(t) |
| 1147 | configuration.DoneSquash = config.Squash |
| 1148 | |
| 1149 | // now in /local |
| 1150 | createFileAndCommitIt(t, "file1.txt", "owqe", "not a mob session yet") |
| 1151 | |
| 1152 | setWorkingDir(tempDir + "/alice") |
| 1153 | start(configuration) |
| 1154 | createFile(t, "file2.txt", "zcvx") |
| 1155 | next(configuration) |
| 1156 | |
| 1157 | setWorkingDir(tempDir + "/local") |
| 1158 | git("push") |
| 1159 | |
| 1160 | setWorkingDir(tempDir + "/alice") |
| 1161 | start(configuration) |
| 1162 | done(configuration) |
| 1163 | |
| 1164 | assertFileExist(t, "file1.txt") |
| 1165 | } |
| 1166 | |
| 1167 | func TestStartDoneSquashWipWithUnpushedCommit(t *testing.T) { |
| 1168 | _, configuration := setup(t) |
nothing calls this directly
no test coverage detected