Remove brittle interactive rebase shortcuts
This commit is contained in:
@@ -121,6 +121,15 @@ class LevelSolutionsTest {
|
||||
val fetchRepo = fetchRuntime.prepareLevel(fetchExercise)
|
||||
val (pulledRepo, _) = fetchRuntime.execute(fetchExercise, fetchRepo, "git pull")
|
||||
assertFalse("Pulling must not solve the fetch level.", fetchExercise.validator(pulledRepo, "git pull"))
|
||||
|
||||
val reorderExercise = reorderLevel()
|
||||
val reorderRuntime = GitRepositoryRuntime(runtimeRoot, gitBinary)
|
||||
val reorderRepo = reorderRuntime.prepareLevel(reorderExercise)
|
||||
val (bareInteractiveRebaseRepo, _) = reorderRuntime.execute(reorderExercise, reorderRepo, "git rebase -i")
|
||||
assertFalse(
|
||||
"Starting an interactive rebase without an upstream/range must not solve the reorder level.",
|
||||
reorderExercise.validator(bareInteractiveRebaseRepo, "git rebase -i"),
|
||||
)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
|
||||
Reference in New Issue
Block a user