{"comment":{"url":"https://api.github.com/repos/kevinhofmaenner/myflix/comments/10328011","html_url":"https://github.com/kevinhofmaenner/myflix/commit/defd9f0e562e4bf9f623ee44433ea1dba2c5b38d#commitcomment-10328011","id":10328011,"user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"position":7,"line":15,"path":"spec/support/macros.rb","commit_id":"defd9f0e562e4bf9f623ee44433ea1dba2c5b38d","created_at":"2015-03-21T08:22:44Z","updated_at":"2015-03-21T08:22:44Z","body":"You could do `user ||= Fabricate(:user)` and change `a_user = nil` to `user = nil` This is called memoization. If the `user` exists already it won't `Fabricate(:user)` new one."}}