These are chat archives for etorreborre/specs2

4th
Aug 2017
Matthew de Detrich
@mdedetrich
Aug 04 2017 11:17
@etorreborre How would you do this using this syntax
override def is = s2"""
    My service test
    TestGetRequest     $testGetRequest
  """

def testGetRequest(name: String) = ???
Matthew de Detrich
@mdedetrich
Aug 04 2017 11:33
Or acceptance tests as they are known?
Eric Torreborre
@etorreborre
Aug 04 2017 13:08
This works
import org.specs2.Specification

class TestSpec extends Specification { def is = s2"""

  My service test
  TestGetRequest     $testGetRequest

"""

  def testGetRequest = (name: String) => { 
    s"test $name".pp; ok 
  }
}
Matthew de Detrich
@mdedetrich
Aug 04 2017 16:27
Nice, thanks!