Permalink
Browse files

added a shortcut method to add fragments in a mutable spec

  • Loading branch information...
1 parent 72552d7 commit 8807b7097c5a5a0788ab06cf42be6be879bfc75a @etorreborre committed Feb 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/scala/org/specs2/mutable/FragmentsBuilder.scala
@@ -93,6 +93,7 @@ trait FragmentsBuilder extends specification.FragmentsBuilder with ExamplesFacto
fs
addFragments(p)
}
+ protected def >>(fs: Fragments) = addFragments(fs)
protected def addFragments(fs: Fragments): Fragments = {
specFragments = new FragmentsFragment(specFragments) ^ fs
fs

0 comments on commit 8807b70

Please sign in to comment.