All Downloads are FREE. Search and download functionalities are using the official Maven repository.

im.actor.server.ServiceSpecMatchers.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package im.actor.server

import im.actor.api.rpc.RpcError
import org.scalatest.Matchers
import org.scalatest.matchers.Matcher

import scalaz.{ \/, -\/ }

trait ServiceSpecMatchers extends Matchers {
  def matchNotAuthorized[T]: Matcher[\/[RpcError, T]] = matchPattern {
    case -\/(RpcError(403, "FORBIDDEN", _, _, _)) ⇒
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy