Skip to content

Added back a Scope trait for 5.x

Compare
Choose a tag to compare
@etorreborre etorreborre released this 23 May 21:21
· 40 commits to main since this release
38567f8

Version 5 dropped the Scope trait for mutable specifications, to initialize some values and make them accessible to examples in mutable specifications.

That trait is now back as org.specs2.execute.Scope:

class MySpec extends mutable.Specification:
  "e1" in new MyScope:
    someValue === 1
  
trait MyScope extends Scope: 
  val someValue: Int = 1