{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/e6c6e133e74c3b83f04d2861deaa1c20?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e6c6e133e74c3b83f04d2861deaa1c20","url":"https://api.github.com/users/searls","login":"searls","id":79303},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-28T16:09:12Z","closed_at":null,"comments":2,"url":"https://api.github.com/repos/pivotal/jasmine/issues/153","body":"It'd be nice to have an aroundEach function, particularly for situations where something needs to be set up and unwound, and you'd like those two things to sit right next to each other in the code.\r\n\r\nHere's the example I just wanted to write:\r\n\r\n``` javascript\r\n\r\naroundEach(function(spec){\r\n  Timecop.travel(new Date(2011, 10, 28, 11, 45));\r\n  spec.run();\r\n  Timecop. returnToPresent();\r\n});\r\n\r\n```\r\n\r\nNot something I'd use everyday, but it can be handy once in a while. (Referenced lib is [Timecop.js](https://github.com/jamesarosen/Timecop.js))","html_url":"https://github.com/pivotal/jasmine/issues/153","title":"Implement aroundEach","number":153,"id":2078202,"created_at":"2011-10-28T12:46:30Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/e6c6e133e74c3b83f04d2861deaa1c20?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e6c6e133e74c3b83f04d2861deaa1c20","url":"https://api.github.com/users/searls","login":"searls","id":79303},"updated_at":"2011-10-28T16:09:11Z","url":"https://api.github.com/repos/pivotal/jasmine/issues/comments/2557923","body":"I doubt there's anything this could do that a beforeEach + an afterEach couldn't do. It would merely tidy up specs in certain cases.","id":2557923,"created_at":"2011-10-28T16:09:11Z"}}