{"action":"created","issue":{"url":"https://api.github.com/repos/cubesystems/coding_conventions/issues/2","labels_url":"https://api.github.com/repos/cubesystems/coding_conventions/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cubesystems/coding_conventions/issues/2/comments","events_url":"https://api.github.com/repos/cubesystems/coding_conventions/issues/2/events","html_url":"https://github.com/cubesystems/coding_conventions/issues/2","id":122495566,"number":2,"title":"Testing conventions","user":{"login":"miks","id":686243,"avatar_url":"https://avatars.githubusercontent.com/u/686243?v=3","gravatar_id":"","url":"https://api.github.com/users/miks","html_url":"https://github.com/miks","followers_url":"https://api.github.com/users/miks/followers","following_url":"https://api.github.com/users/miks/following{/other_user}","gists_url":"https://api.github.com/users/miks/gists{/gist_id}","starred_url":"https://api.github.com/users/miks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miks/subscriptions","organizations_url":"https://api.github.com/users/miks/orgs","repos_url":"https://api.github.com/users/miks/repos","events_url":"https://api.github.com/users/miks/events{/privacy}","received_events_url":"https://api.github.com/users/miks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T12:39:46Z","updated_at":"2015-12-16T13:02:57Z","closed_at":null,"body":"its better to test against readable sql/html (whitespaced before comparing) instead of single line result string.\r\nex:\r\n```\r\nhttps://github.com/cubesystems/releaf/commit/d5549bd1698718b98903032464b28e2bd38f0bc9#diff-fb476f77cec7d6e901083c63201f0072L34\r\n```"},"comment":{"url":"https://api.github.com/repos/cubesystems/coding_conventions/issues/comments/165098220","html_url":"https://github.com/cubesystems/coding_conventions/issues/2#issuecomment-165098220","issue_url":"https://api.github.com/repos/cubesystems/coding_conventions/issues/2","id":165098220,"user":{"login":"guntis","id":686431,"avatar_url":"https://avatars.githubusercontent.com/u/686431?v=3","gravatar_id":"","url":"https://api.github.com/users/guntis","html_url":"https://github.com/guntis","followers_url":"https://api.github.com/users/guntis/followers","following_url":"https://api.github.com/users/guntis/following{/other_user}","gists_url":"https://api.github.com/users/guntis/gists{/gist_id}","starred_url":"https://api.github.com/users/guntis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guntis/subscriptions","organizations_url":"https://api.github.com/users/guntis/orgs","repos_url":"https://api.github.com/users/guntis/repos","events_url":"https://api.github.com/users/guntis/events{/privacy}","received_events_url":"https://api.github.com/users/guntis/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T13:02:57Z","updated_at":"2015-12-16T13:02:57Z","body":"Yes, the matcher could be called `match_html` and could perform `.strip.gsub(/\\s+/,' ').gsub('> <', '><'))` on both strings before comparing them.\r\n\r\nSimilarly, a `match_sql` could be created for matching SQL fragments (the exact replacement rules differ depending on the content type of the string).\r\n\r\n"}}