Permalink
Browse files

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

  • Loading branch information...
cheeseng committed Feb 28, 2012
1 parent 65255b4 commit 847b776eeccf73e7b5c390da2da5346b47a76d5c
@@ -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 _ =>

0 comments on commit 847b776

Please sign in to comment.