Scope

org.specs2.execute.Scope
See theScope companion object
trait Scope

This trait can be used in mutable specifications to provide setup values. For example:

  class MySpec extends mutable.Specification:
     "e1" in new MyScope:
       someValue === 1

   trait MyScope extends Scope: val someValue: Int = 1

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
In this article