How can I check if a Seq[String]
is empty or not using specs2 in Scala ? I am using seq must be empty
or seq.length must be greaterThan(0)
but I end up always with type mismatch errors.
ret is Seq[String]
ret.length must be greaterThan(0)
[error] ApiTest.scala:99: type mismatch;
[error] found : Int
[error] required: org.specs2.matcher.Matcher[String]
[error] ret.length must be greaterThan(0)