{"action":"created","issue":{"url":"https://api.github.com/repos/djanowski/cutest/issues/25","labels_url":"https://api.github.com/repos/djanowski/cutest/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/djanowski/cutest/issues/25/comments","events_url":"https://api.github.com/repos/djanowski/cutest/issues/25/events","html_url":"https://github.com/djanowski/cutest/pull/25","id":64618348,"number":25,"title":"Add #assert_nothing_raised assertion","user":{"login":"halostatue","id":11361,"avatar_url":"https://avatars.githubusercontent.com/u/11361?v=3","gravatar_id":"","url":"https://api.github.com/users/halostatue","html_url":"https://github.com/halostatue","followers_url":"https://api.github.com/users/halostatue/followers","following_url":"https://api.github.com/users/halostatue/following{/other_user}","gists_url":"https://api.github.com/users/halostatue/gists{/gist_id}","starred_url":"https://api.github.com/users/halostatue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halostatue/subscriptions","organizations_url":"https://api.github.com/users/halostatue/orgs","repos_url":"https://api.github.com/users/halostatue/repos","events_url":"https://api.github.com/users/halostatue/events{/privacy}","received_events_url":"https://api.github.com/users/halostatue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-26T19:51:41Z","updated_at":"2015-03-27T13:56:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/djanowski/cutest/pulls/25","html_url":"https://github.com/djanowski/cutest/pull/25","diff_url":"https://github.com/djanowski/cutest/pull/25.diff","patch_url":"https://github.com/djanowski/cutest/pull/25.patch"},"body":"A counterpart to `#assert_raised` that asserts that the block raises no exception.\r\n\r\n- Also fix the documentation of `#assert_raised`."},"comment":{"url":"https://api.github.com/repos/djanowski/cutest/issues/comments/86946592","html_url":"https://github.com/djanowski/cutest/pull/25#issuecomment-86946592","issue_url":"https://api.github.com/repos/djanowski/cutest/issues/25","id":86946592,"user":{"login":"britishtea","id":791871,"avatar_url":"https://avatars.githubusercontent.com/u/791871?v=3","gravatar_id":"","url":"https://api.github.com/users/britishtea","html_url":"https://github.com/britishtea","followers_url":"https://api.github.com/users/britishtea/followers","following_url":"https://api.github.com/users/britishtea/following{/other_user}","gists_url":"https://api.github.com/users/britishtea/gists{/gist_id}","starred_url":"https://api.github.com/users/britishtea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britishtea/subscriptions","organizations_url":"https://api.github.com/users/britishtea/orgs","repos_url":"https://api.github.com/users/britishtea/repos","events_url":"https://api.github.com/users/britishtea/events{/privacy}","received_events_url":"https://api.github.com/users/britishtea/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T13:56:18Z","updated_at":"2015-03-27T13:56:18Z","body":"Having thought more about it, I think an assertion on not raising an exception is silly. It's an assertion you'd have to do on basically *every* test, save the tests you do with `assert_raise`.\r\n\r\nYou could even argue these assertions are already done implicitly:\r\n\r\n**test.rb**\r\n```ruby\r\ntest { raise \"hi\" }\r\n```\r\n\r\n```\r\n$ cutest test.rb\r\n  test: \r\n  line: test { raise 'foo' }\r\n  file: /tmp/.psub.9KvPWcY6dy +1\r\n\r\nRuntimeError: foo\r\n```"}}