You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/05/16 20:50:32 UTC
[44/44] git commit: Add a description of what IOCSpecification is for
Add a description of what IOCSpecification is for
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/a1da91ba
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/a1da91ba
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/a1da91ba
Branch: refs/heads/master
Commit: a1da91ba91968ffb005cb237856a82b5c2ace3e8
Parents: 85c3428
Author: Howard M. Lewis Ship <hl...@gmail.com>
Authored: Sun Apr 15 07:18:36 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Wed May 16 11:49:40 2012 -0700
----------------------------------------------------------------------
.../apache/tapestry/ioc/IOCSpecification.groovy | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/a1da91ba/tapestry-ioc/src/test/groovy/org/apache/tapestry/ioc/IOCSpecification.groovy
----------------------------------------------------------------------
diff --git a/tapestry-ioc/src/test/groovy/org/apache/tapestry/ioc/IOCSpecification.groovy b/tapestry-ioc/src/test/groovy/org/apache/tapestry/ioc/IOCSpecification.groovy
index 8265954..8340c43 100644
--- a/tapestry-ioc/src/test/groovy/org/apache/tapestry/ioc/IOCSpecification.groovy
+++ b/tapestry-ioc/src/test/groovy/org/apache/tapestry/ioc/IOCSpecification.groovy
@@ -5,6 +5,9 @@ import org.apache.tapestry5.ioc.RegistryBuilder
import spock.lang.AutoCleanup
import spock.lang.Specification
+/**
+ * Base class for Spock specifications that use an {@link Registry}.
+ */
abstract class IOCSpecification extends Specification {
@AutoCleanup("shutdown")
@@ -18,7 +21,7 @@ abstract class IOCSpecification extends Specification {
/** Any unrecognized methods are evaluated against the registry. */
def methodMissing(String name, args) {
- registry."$name"(*args)
+ registry."$name"(* args)
}