org.specs2.mutable.ExamplesFactory.scala Maven / Gradle / Ivy
package org.specs2
package mutable
import specification.{Example, DefaultExampleFactory, ExampleFactory}
trait ExamplesFactory extends specification.ExamplesFactory { this: FragmentsBuilder =>
override implicit def exampleFactory: ExampleFactory = new MutableExampleFactory
class MutableExampleFactory extends DefaultExampleFactory {
override def newExample(e: Example): Example = addExample(e)
}
}