diff --git a/src/test/groovy/space/kklochko/simple_jbdd/tests/factories/validators/IntegratedValidatorsSpec.groovy b/src/test/groovy/space/kklochko/simple_jbdd/tests/factories/validators/IntegratedValidatorsSpec.groovy index 78881ad..df409b2 100644 --- a/src/test/groovy/space/kklochko/simple_jbdd/tests/factories/validators/IntegratedValidatorsSpec.groovy +++ b/src/test/groovy/space/kklochko/simple_jbdd/tests/factories/validators/IntegratedValidatorsSpec.groovy @@ -49,11 +49,11 @@ class IntegratedValidatorsSpec extends Specification { def message = validator.getMessage() then: "The message must be expected" - message == expectedMessage + message ==~ expectedMessage where: "Possible variants of tests" validator | testClass || expectedMessage - new HasMethodsWithArgumentsValidator() | HasMethodArgumentsTest.class || "ERROR!!! Methods must have no arguments!!! Check methods: given, setupArguments!!!" + new HasMethodsWithArgumentsValidator() | HasMethodArgumentsTest.class || "ERROR!!! Methods must have no arguments!!! Check methods: (given|setupArguments), (given|setupArguments)!!!" new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok" new HasNonVoidMethodsValidator() | HasNonVoidMethodTest.class || "ERROR!!! Methods must have the void type!!! Check methods: then!!!" new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok"