{"action":"created","comment":{"url":"https://api.github.com/repos/tradegecko/gecko/pulls/comments/25724766","id":25724766,"diff_hunk":"@@ -1,30 +1,78 @@\n require 'gecko'\n+require 'test_helper'\n \n class Gecko::Helpers::SerializationHelperTest < Minitest::Test\n-  def setup\n-    @klass = Class.new(Gecko::Record::Base) do\n-      attribute :name,   String\n-      attribute :secret, String, readonly: true\n+  Wodget = Class.new(Gecko::Record::Base) do\n+    attribute :name, String\n+\n+    def root\n+      :wodget\n+    end\n+  end\n+\n+  Widget = Class.new(Gecko::Record::Base) do\n+    attribute :name,       String\n+    attribute :secret,     String,       readonly: true\n+    attribute :score,      BigDecimal\n+    attribute :started_on, Date\n+    attribute :started_at, DateTime\n+    attribute :wodgets,    Array[Wodget]\n \n-      def root\n-        :widget\n-      end\n+    def root\n+      :widget\n     end\n+  end\n+\n+  let(:record) do\n+    Widget.new(@client, {\n+      name:       \"Gecko\",\n+      secret:     \"Iguana\",","path":"test/helpers/serialization_helper_test.rb","position":36,"original_position":36,"commit_id":"9841882995595fd1370ba8926dcd014984998360","original_commit_id":"9841882995595fd1370ba8926dcd014984998360","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Unnecessary spacing detected.","created_at":"2015-03-03T20:45:52Z","updated_at":"2015-03-03T20:45:52Z","html_url":"https://github.com/tradegecko/gecko/pull/32#discussion_r25724766","pull_request_url":"https://api.github.com/repos/tradegecko/gecko/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/comments/25724766"},"html":{"href":"https://github.com/tradegecko/gecko/pull/32#discussion_r25724766"},"pull_request":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/tradegecko/gecko/pulls/32","id":30360790,"html_url":"https://github.com/tradegecko/gecko/pull/32","diff_url":"https://github.com/tradegecko/gecko/pull/32.diff","patch_url":"https://github.com/tradegecko/gecko/pull/32.patch","issue_url":"https://api.github.com/repos/tradegecko/gecko/issues/32","number":32,"state":"open","locked":false,"title":"WIP - Make sure to serialise deeper structures inside the JSON","user":{"login":"bradleypriest","id":167215,"avatar_url":"https://avatars.githubusercontent.com/u/167215?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleypriest","html_url":"https://github.com/bradleypriest","followers_url":"https://api.github.com/users/bradleypriest/followers","following_url":"https://api.github.com/users/bradleypriest/following{/other_user}","gists_url":"https://api.github.com/users/bradleypriest/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleypriest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleypriest/subscriptions","organizations_url":"https://api.github.com/users/bradleypriest/orgs","repos_url":"https://api.github.com/users/bradleypriest/repos","events_url":"https://api.github.com/users/bradleypriest/events{/privacy}","received_events_url":"https://api.github.com/users/bradleypriest/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-03-03T10:13:37Z","updated_at":"2015-03-03T20:45:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58a8b485b0843c83069f357172530fcb11218247","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tradegecko/gecko/pulls/32/commits","review_comments_url":"https://api.github.com/repos/tradegecko/gecko/pulls/32/comments","review_comment_url":"https://api.github.com/repos/tradegecko/gecko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tradegecko/gecko/issues/32/comments","statuses_url":"https://api.github.com/repos/tradegecko/gecko/statuses/9841882995595fd1370ba8926dcd014984998360","head":{"label":"tradegecko:serialization-without-rails","ref":"serialization-without-rails","sha":"9841882995595fd1370ba8926dcd014984998360","user":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"repo":{"id":15856065,"name":"gecko","full_name":"tradegecko/gecko","owner":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tradegecko/gecko","description":"A Ruby interface to the TradeGecko API.","fork":false,"url":"https://api.github.com/repos/tradegecko/gecko","forks_url":"https://api.github.com/repos/tradegecko/gecko/forks","keys_url":"https://api.github.com/repos/tradegecko/gecko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tradegecko/gecko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tradegecko/gecko/teams","hooks_url":"https://api.github.com/repos/tradegecko/gecko/hooks","issue_events_url":"https://api.github.com/repos/tradegecko/gecko/issues/events{/number}","events_url":"https://api.github.com/repos/tradegecko/gecko/events","assignees_url":"https://api.github.com/repos/tradegecko/gecko/assignees{/user}","branches_url":"https://api.github.com/repos/tradegecko/gecko/branches{/branch}","tags_url":"https://api.github.com/repos/tradegecko/gecko/tags","blobs_url":"https://api.github.com/repos/tradegecko/gecko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tradegecko/gecko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tradegecko/gecko/git/refs{/sha}","trees_url":"https://api.github.com/repos/tradegecko/gecko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tradegecko/gecko/statuses/{sha}","languages_url":"https://api.github.com/repos/tradegecko/gecko/languages","stargazers_url":"https://api.github.com/repos/tradegecko/gecko/stargazers","contributors_url":"https://api.github.com/repos/tradegecko/gecko/contributors","subscribers_url":"https://api.github.com/repos/tradegecko/gecko/subscribers","subscription_url":"https://api.github.com/repos/tradegecko/gecko/subscription","commits_url":"https://api.github.com/repos/tradegecko/gecko/commits{/sha}","git_commits_url":"https://api.github.com/repos/tradegecko/gecko/git/commits{/sha}","comments_url":"https://api.github.com/repos/tradegecko/gecko/comments{/number}","issue_comment_url":"https://api.github.com/repos/tradegecko/gecko/issues/comments{/number}","contents_url":"https://api.github.com/repos/tradegecko/gecko/contents/{+path}","compare_url":"https://api.github.com/repos/tradegecko/gecko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tradegecko/gecko/merges","archive_url":"https://api.github.com/repos/tradegecko/gecko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tradegecko/gecko/downloads","issues_url":"https://api.github.com/repos/tradegecko/gecko/issues{/number}","pulls_url":"https://api.github.com/repos/tradegecko/gecko/pulls{/number}","milestones_url":"https://api.github.com/repos/tradegecko/gecko/milestones{/number}","notifications_url":"https://api.github.com/repos/tradegecko/gecko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tradegecko/gecko/labels{/name}","releases_url":"https://api.github.com/repos/tradegecko/gecko/releases{/id}","created_at":"2014-01-13T02:37:26Z","updated_at":"2015-03-03T20:44:42Z","pushed_at":"2015-03-03T20:45:46Z","git_url":"git://github.com/tradegecko/gecko.git","ssh_url":"git@github.com:tradegecko/gecko.git","clone_url":"https://github.com/tradegecko/gecko.git","svn_url":"https://github.com/tradegecko/gecko","homepage":null,"size":892,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"tradegecko:master","ref":"master","sha":"8cdc0e98353e744e0e2f1807e6a13cf0e63c2663","user":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"repo":{"id":15856065,"name":"gecko","full_name":"tradegecko/gecko","owner":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tradegecko/gecko","description":"A Ruby interface to the TradeGecko API.","fork":false,"url":"https://api.github.com/repos/tradegecko/gecko","forks_url":"https://api.github.com/repos/tradegecko/gecko/forks","keys_url":"https://api.github.com/repos/tradegecko/gecko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tradegecko/gecko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tradegecko/gecko/teams","hooks_url":"https://api.github.com/repos/tradegecko/gecko/hooks","issue_events_url":"https://api.github.com/repos/tradegecko/gecko/issues/events{/number}","events_url":"https://api.github.com/repos/tradegecko/gecko/events","assignees_url":"https://api.github.com/repos/tradegecko/gecko/assignees{/user}","branches_url":"https://api.github.com/repos/tradegecko/gecko/branches{/branch}","tags_url":"https://api.github.com/repos/tradegecko/gecko/tags","blobs_url":"https://api.github.com/repos/tradegecko/gecko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tradegecko/gecko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tradegecko/gecko/git/refs{/sha}","trees_url":"https://api.github.com/repos/tradegecko/gecko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tradegecko/gecko/statuses/{sha}","languages_url":"https://api.github.com/repos/tradegecko/gecko/languages","stargazers_url":"https://api.github.com/repos/tradegecko/gecko/stargazers","contributors_url":"https://api.github.com/repos/tradegecko/gecko/contributors","subscribers_url":"https://api.github.com/repos/tradegecko/gecko/subscribers","subscription_url":"https://api.github.com/repos/tradegecko/gecko/subscription","commits_url":"https://api.github.com/repos/tradegecko/gecko/commits{/sha}","git_commits_url":"https://api.github.com/repos/tradegecko/gecko/git/commits{/sha}","comments_url":"https://api.github.com/repos/tradegecko/gecko/comments{/number}","issue_comment_url":"https://api.github.com/repos/tradegecko/gecko/issues/comments{/number}","contents_url":"https://api.github.com/repos/tradegecko/gecko/contents/{+path}","compare_url":"https://api.github.com/repos/tradegecko/gecko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tradegecko/gecko/merges","archive_url":"https://api.github.com/repos/tradegecko/gecko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tradegecko/gecko/downloads","issues_url":"https://api.github.com/repos/tradegecko/gecko/issues{/number}","pulls_url":"https://api.github.com/repos/tradegecko/gecko/pulls{/number}","milestones_url":"https://api.github.com/repos/tradegecko/gecko/milestones{/number}","notifications_url":"https://api.github.com/repos/tradegecko/gecko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tradegecko/gecko/labels{/name}","releases_url":"https://api.github.com/repos/tradegecko/gecko/releases{/id}","created_at":"2014-01-13T02:37:26Z","updated_at":"2015-03-03T20:44:42Z","pushed_at":"2015-03-03T20:45:46Z","git_url":"git://github.com/tradegecko/gecko.git","ssh_url":"git@github.com:tradegecko/gecko.git","clone_url":"https://github.com/tradegecko/gecko.git","svn_url":"https://github.com/tradegecko/gecko","homepage":null,"size":892,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/32"},"html":{"href":"https://github.com/tradegecko/gecko/pull/32"},"issue":{"href":"https://api.github.com/repos/tradegecko/gecko/issues/32"},"comments":{"href":"https://api.github.com/repos/tradegecko/gecko/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/tradegecko/gecko/statuses/9841882995595fd1370ba8926dcd014984998360"}}}}