Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created May 15, 2015 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjazdzewski1990/6a3c9ad172ee0156df32 to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/6a3c9ad172ee0156df32 to your computer and use it in GitHub Desktop.
import org.specs2.mutable.Specification
import org.specs2.specification.Scope
class MathSpec extends Specification {
class Context extends Scope {
val pi = 3.14
}
"Math" should {
"multiply" in new Context {
2*pi === 6.28
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment