trait
Grouped extends AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
implicit
def
namedGroup(s: String): NamedGroup
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
This trait can be used to standardize names for groups of examples in an acceptance specification.
class MySpecification extends Examples { def is = "first example in first group" ! g1.e1 "second example in first group" ! g1.e2 p "first example in second group" ! g2.e1 "second example in second group" ! g2.e2 }
trait Examples extends Grouped with Matchers { "first group of examples" - new g1 { e1 - ok e2 - ok } "second group of examples" - new g2 { e1 - ok e2 - ok } }
It is important to notice that the examples must be called with
g1().e1so as to create a newg1trait instance with new local variables for the examplee1. If this is not required, theGroupedtrait can be used instead