Skip to content

Commit

Permalink
Verify the method name is given to method invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Jun 6, 2023
1 parent e9789f4 commit 305a8f8
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'shared initializer', "$it.spec.name")
}
Expand All @@ -174,6 +175,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'shared initializer method', "$it.spec.name.$it.method.name()")
}
Expand All @@ -186,6 +188,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'specification', "$it.spec.name")
}
Expand All @@ -198,6 +201,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'setup spec', "$it.spec.name")
}
Expand All @@ -210,6 +214,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'setup spec method', "$it.spec.name.$it.method.name()")
}
Expand All @@ -222,6 +227,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'feature', "$it.spec.name.$it.feature.name")
}
Expand All @@ -234,6 +240,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'initializer', "$it.spec.name.$it.feature.name")
}
Expand All @@ -246,6 +253,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'initializer method', "$it.spec.name.$it.feature.name.$it.method.name()")
}
Expand All @@ -258,6 +266,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'iteration', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]")
}
Expand All @@ -270,6 +279,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'setup', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]")
}
Expand All @@ -282,6 +292,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'setup method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()")
}
Expand All @@ -294,6 +305,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'feature method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()")
}
Expand All @@ -306,6 +318,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'cleanup', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex]")
}
Expand All @@ -318,6 +331,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'cleanup method', "$it.spec.name.$it.feature.name[#$it.iteration.iterationIndex].$it.method.name()")
}
Expand All @@ -330,6 +344,7 @@ class FooSpec extends Specification {
assert target != instance
assert method
assert !method.reflection
assert !method.name
}
proceed(it, 'cleanup spec', "$it.spec.name")
}
Expand All @@ -342,6 +357,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'cleanup spec method', "$it.spec.name.$it.method.name()")
}
Expand All @@ -360,6 +376,7 @@ class FooSpec extends Specification {
assert target == instance
assert method
assert method.reflection
assert method.name
}
proceed(it, 'fixture method', "$it.spec.name${it.feature?.name?.with { name -> ".$name[#$it.iteration.iterationIndex]" } ?: ''}.$it.method.name()")
}
Expand Down

0 comments on commit 305a8f8

Please sign in to comment.