These are chat archives for etorreborre/specs2

11th
Mar 2015
Knut Petter Meen
@kpmeen
Mar 11 2015 20:04
Hello, I have a question about the 3.0.x version. I'm trying to bootstrap a process (embed-mongo) before a spec is executed, and stop after spec is completed. However, the process isn't able to stop. There's a huge stack trace (https://gist.github.com/79e084a2fa74d32005c5.git). Starting stopping the process works fine inside the REPL, but fails when executing the tests. Any ideas what this might be?
Worth mentioning that I have a similar setup using 2.3.x of specs2 that works just fine with more or less the same type of bootstrapping code
This message was deleted
Knut Petter Meen
@kpmeen
Mar 11 2015 21:13
Ok...figured it out...wasn't related to specs2 at all :-)
Eric Torreborre
@etorreborre
Mar 11 2015 21:23
@kpmeen ok, good to know :-)
Franklin Chen
@FranklinChen
Mar 11 2015 21:26
Quick question: is there a migration guide from spec2 2.4.x to 3.x? My (immutable) fragment manipulation involving br, ^, endp no longer compiles.
Eric Torreborre
@etorreborre
Mar 11 2015 21:28
This blog post is supposed to give an overview of what changed: http://etorreborre.blogspot.com.au/2014/12/specs2-three.html, but specific questions are better addressed here or on the mailing list.
In your case it is possible that you are missing an import
Can I have a look at your class?
Eric Torreborre
@etorreborre
Mar 11 2015 22:21
@FranklinChen you can import org.specs2.specification.create.FormattingFragments and possibly mix-in the org.specs2.specification.create.S2StringContext trait to build your fragments instead of using ^. Also I realise that endp is missing, I have removed it to simplify the API. It is less important now to have combinations such as endp since s2 interpolated strings.