Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed method invocation name to 'apply' when it is a 'apply' call.

  • Loading branch information...
commit 847b776eeccf73e7b5c390da2da5346b47a76d5c 1 parent 65255b4
@cheeseng authored
View
3  src/org/jetbrains/plugins/scala/testingSupport/scalaTest/ScalaTestAstTransformer.scala
@@ -269,8 +269,7 @@ class ScalaTestAstTransformer {
case _ => new StToStringTarget(containingClassName, expr, expr.getText)
}
}
-
- Some(new StMethodInvocation(containingClassName, target, selected, ref.refName, args.toList: _*))
+ Some(new StMethodInvocation(containingClassName, target, selected, if (current.isApplyOrUpdateCall) "apply" else ref.refName, args.toList: _*))
case inv: MethodInvocation =>
getScalaTestMethodInvocation(selected, inv, paramsExpr)
case _ =>
Please sign in to comment.
Something went wrong with that request. Please try again.