How to handle Action which returns Accumultor[ByteString,Result] in unit test
问题 My Action returns Accumulator[ByteString,Result] . I want to unit test the Accumulator . How can I test it? I am trying to use contentAsJson which accepts a variable of type Accumulator[ByteString,Result] but the Right side of Either is not giving me the content. The following is the test case. "newQuestion" should { "should return error if tag information in the question isn't in correct format" in { val testEnv = new QuestionsControllerSpecTestEnv(components=components) val body = s""" |{ |