Skip to content

Commit

Permalink
Simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Sep 10, 2022
1 parent 04838fe commit d6d315d
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,11 @@ internal class CliArgsSpec {
}
}

@Nested
inner class `--all-rules and --fail-fast lead to all rules being activated` {

@ParameterizedTest
@ValueSource(strings = ["--all-rules", "--fail-fast"])
fun `all rules active`(flag: String) {
val spec = parseArguments(arrayOf(flag)).toSpec()
assertThat(spec.rulesSpec.activateAllRules).isTrue()
}
@ParameterizedTest
@ValueSource(strings = ["--all-rules", "--fail-fast"])
fun `--all-rules and --fail-fast lead to all rules being activated`(flag: String) {
val spec = parseArguments(arrayOf(flag)).toSpec()
assertThat(spec.rulesSpec.activateAllRules).isTrue()
}

@Nested
Expand Down

0 comments on commit d6d315d

Please sign in to comment.