I'm trying to use specs2, and I have a problem with implicit conversions which are blended with those imported by me from scala.concurrent.duration._, is there any way to exclude implicite conversions from the scope?
import org.specs2.mutable.Specification
import scala.concurrent.duration._
class StatisticsSampleCacheSpec extends Specification {
val map: Map[Long, Duration] = Map(
1L -> 5.minute,
3L -> 3.day,
5L -> 5.day,
7L -> 30.day)
}
It's quite common problem, try to mix-in org.specs2.time.NoTimeConversions
trait:
class StatisticsSampleCacheSpec extends Specification with NoTimeConversions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With