{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/25086","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/25086/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/25086/comments","events_url":"https://api.github.com/repos/akka/akka/issues/25086/events","html_url":"https://github.com/akka/akka/issues/25086","id":322504557,"number":25086,"title":"Documentation: clarify test example in part 3 of starting guide","user":{"login":"FlorianGit","id":13706192,"avatar_url":"https://avatars0.githubusercontent.com/u/13706192?v=4","gravatar_id":"","url":"https://api.github.com/users/FlorianGit","html_url":"https://github.com/FlorianGit","followers_url":"https://api.github.com/users/FlorianGit/followers","following_url":"https://api.github.com/users/FlorianGit/following{/other_user}","gists_url":"https://api.github.com/users/FlorianGit/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianGit/subscriptions","organizations_url":"https://api.github.com/users/FlorianGit/orgs","repos_url":"https://api.github.com/users/FlorianGit/repos","events_url":"https://api.github.com/users/FlorianGit/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianGit/received_events","type":"User","site_admin":false},"labels":[{"id":92667537,"url":"https://api.github.com/repos/akka/akka/labels/0%20-%20new","name":"0 - new","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-12T11:40:05Z","updated_at":"2018-05-14T10:41:27Z","closed_at":null,"author_association":"NONE","body":"I'm currently working through [part 3](https://doc.akka.io/docs/akka/current/guide/tutorial_3.html#testing-the-actor) of the starting guide, \"testing the actor\" and had a bit of trouble getting the code to work. The example leaves out the details of exactly what kind of spec is used.\r\n\r\nI had a look at the [source of the snippet](https://github.com/akka/akka/blob/master/akka-docs/src/test/scala/tutorial_3/DeviceSpec.scala) but could not get it to work either because the AkkaSpec used there [is not part of the released version](https://stackoverflow.com/a/33629136/5367428) of the akka Testkit.\r\n\r\nFortunately the source of the akka testkit is also available and I managed to build a working test using\r\n\r\n    class DeviceSpec extends TestKit(ActorSystem(\"DeviceSpec\")) \r\n        with Matchers \r\n        with WordSpecLike \r\n        with BeforeAndAfterAll {\r\n\r\nI think the readability of this part of the documentation can be improved by adding the complete required source for the first test (\"reply with empty reading if no temperature is known\"). For the second test, \"reply with latest temperature reading\" the snippet can stay as it is, with the remark that it should be added to the previous spec.\r\n\r\nSo my question is what you think of this idea? I do not mind creating a pull request implementing it, but first want to check if it would be desirable.\r\n\r\nThanks,\r\nFlorian\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/388773907","html_url":"https://github.com/akka/akka/issues/25086#issuecomment-388773907","issue_url":"https://api.github.com/repos/akka/akka/issues/25086","id":388773907,"user":{"login":"johanandren","id":666915,"avatar_url":"https://avatars3.githubusercontent.com/u/666915?v=4","gravatar_id":"","url":"https://api.github.com/users/johanandren","html_url":"https://github.com/johanandren","followers_url":"https://api.github.com/users/johanandren/followers","following_url":"https://api.github.com/users/johanandren/following{/other_user}","gists_url":"https://api.github.com/users/johanandren/gists{/gist_id}","starred_url":"https://api.github.com/users/johanandren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanandren/subscriptions","organizations_url":"https://api.github.com/users/johanandren/orgs","repos_url":"https://api.github.com/users/johanandren/repos","events_url":"https://api.github.com/users/johanandren/events{/privacy}","received_events_url":"https://api.github.com/users/johanandren/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T10:41:27Z","updated_at":"2018-05-14T10:41:27Z","author_association":"MEMBER","body":"Or include the complete test in the sample project? (if it isn't already)"}}
{"actor":{"display_login":"johanandren"}}