Skip to content

Commit

Permalink
fix: use () for before/after All methods
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-eric-torreborre committed Sep 8, 2021
1 parent c0ecdee commit a512aa1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/src/main/scala/org/specs2/specification/Contexts.scala
Original file line number Diff line number Diff line change
Expand Up @@ -148,29 +148,29 @@ trait BeforeAfterSpec extends SpecificationStructure with FragmentsFactory:
*/
@deprecated(since="5.0.0")
trait BeforeAll extends SpecificationStructure with FragmentsFactory:
def beforeAll: Unit
def beforeAll(): Unit

override def map(fs: =>Fragments): Fragments =
super.map(fs).prepend(fragmentFactory.step(beforeAll)).append(fragmentFactory.markAs(AlwaysTag))
super.map(fs).prepend(fragmentFactory.step(beforeAll())).append(fragmentFactory.markAs(AlwaysTag))

/** Execute a step after all other fragments
*/
@deprecated(since="5.0.0")
trait AfterAll extends SpecificationStructure with FragmentsFactory:
def afterAll: Unit
def afterAll(): Unit

override def map(fs: =>Fragments): Fragments =
super.map(fs).append(fragmentFactory.step(afterAll)).append(fragmentFactory.markAs(AlwaysTag))
super.map(fs).append(fragmentFactory.step(afterAll())).append(fragmentFactory.markAs(AlwaysTag))

/** Execute a step before and after all other fragments
*/
@deprecated(since="5.0.0")
trait BeforeAfterAll extends SpecificationStructure with FragmentsFactory:
def beforeAll: Unit
def afterAll: Unit
def beforeAll(): Unit
def afterAll(): Unit

override def map(fs: =>Fragments): Fragments =
super
.map(fs)
.prepend(fragmentFactory.step(beforeAll)).append(fragmentFactory.markAs(AlwaysTag))
.append(fragmentFactory.step(afterAll)).append(fragmentFactory.markAs(AlwaysTag))
.prepend(fragmentFactory.step(beforeAll())).append(fragmentFactory.markAs(AlwaysTag))
.append(fragmentFactory.step(afterAll())).append(fragmentFactory.markAs(AlwaysTag))

0 comments on commit a512aa1

Please sign in to comment.