{"issue":{"milestone":{"title":"1.8","created_at":"2011-12-19T05:01:04Z","open_issues":2,"creator":{"id":10988,"login":"etorreborre","url":"https://api.github.com/users/etorreborre","avatar_url":"https://secure.gravatar.com/avatar/5de8b254c711059975670fba5ec10ab1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5de8b254c711059975670fba5ec10ab1"},"state":"open","due_on":null,"closed_issues":0,"description":"","number":8,"url":"https://api.github.com/repos/etorreborre/specs2/milestones/8"},"user":{"id":459632,"login":"ziggystar","url":"https://api.github.com/users/ziggystar","avatar_url":"https://secure.gravatar.com/avatar/a00512b12118ebd20d2043802b38bd02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a00512b12118ebd20d2043802b38bd02"},"title":"Nicer message when doing ^^(... aka(\"...\"))","created_at":"2011-12-20T10:32:21Z","labels":[],"updated_at":"2011-12-20T10:59:20Z","state":"open","id":2611390,"html_url":"https://github.com/etorreborre/specs2/issues/50","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Suppose the following spec:\r\n\r\n``` scala\r\nclass DataPoints extends Specification {\r\n  val objectUnderTest: Int => Int = _ + 2\r\n\r\n  val testCases = 1 :: 2 :: 3 :: 4 :: Nil\r\n\r\n  def is: Fragments = \r\n    (objectUnderTest must multiplyByTwo((_: Int))).foreach(testCases)    \r\n\r\n  def multiplyByTwo(i: Int): Matcher[(Int) => Int] = \r\n    (=== (i * 2)) ^^ \r\n      ((f: Int => Int) => f(i) aka \"result of applying %s to %d\".format(f, i))\r\n}\r\n```\r\n\r\nThis produces the following output:\r\n\r\n    result of applying <function1> to 1 '3' is not equal to '2'; ...\r\n\r\nI find the `aka` string does not go well with the `'3'`. Maybe put the `'3'` in parenthesis; or write `'3' (aka result of applying ...)`; or write a `:` after the aka string.\r\n\r\nBut as it is now it's not nice to read.","number":50,"url":"https://api.github.com/repos/etorreborre/specs2/issues/50","comments":1,"assignee":null},"comment":{"user":{"id":10988,"login":"etorreborre","url":"https://api.github.com/users/etorreborre","avatar_url":"https://secure.gravatar.com/avatar/5de8b254c711059975670fba5ec10ab1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5de8b254c711059975670fba5ec10ab1"},"created_at":"2011-12-20T10:59:18Z","updated_at":"2011-12-20T10:59:18Z","id":3217335,"body":"I'm not sure if I can find something which will work in all cases. This is why you can use [`as`](http://etorreborre.github.com/specs2/guide/org.specs2.guide.Matchers.html#With+a+better+description) instead of `aka` to customize the message more precisely.","url":"https://api.github.com/repos/etorreborre/specs2/issues/comments/3217335"},"action":"created"}