{"action":"created","comment":{"url":"https://api.github.com/repos/calagator/calagator/pulls/comments/23136051","id":23136051,"diff_hunk":"@@ -25,15 +24,68 @@\n     sequence(:description) { |n| \"Description of Event #{n}.\" }\n     start_time { today + 1.hour }\n     end_time { start_time + 1.hour }\n-\n     after(:create) { Sunspot.commit if Event::SearchEngine.kind == :sunspot }\n+\n+    trait :with_venue do\n+      association :venue\n+    end\n   end\n \n-  factory :event_with_venue, :parent => :event do\n-    association :venue\n+  factory :duplicate_event, parent: :event do\n+    association :duplicate_of, factory: :event\n   end\n \n-  factory :duplicate_event, :parent => :event do\n-    association :duplicate_of, :factory => :event\n+  factory :seed_venue, parent: :venue do\n+    title           { Faker::Company.name }\n+    description     { Faker::Lorem.paragraph }\n+    address         { \"#{Faker::Address.street_address},\n+                       #{Faker::Address.city},\n+                       #{Faker::Address.state}\n+                       #{Faker::Address.zip_code}\" }\n+    street_address  { Faker::Address.street_address }\n+    locality        { Faker::Address.city }\n+    region          { Faker::Address.state }\n+    postal_code     { [Faker::Address.zip_code, Faker::Address.postcode].sample }","path":"spec/factories.rb","position":38,"original_position":38,"commit_id":"9b177cb81aff8954ca335521b93e93784e4a7c78","original_commit_id":"9b177cb81aff8954ca335521b93e93784e4a7c78","user":{"login":"jc00ke","id":18191,"avatar_url":"https://avatars.githubusercontent.com/u/18191?v=3","gravatar_id":"","url":"https://api.github.com/users/jc00ke","html_url":"https://github.com/jc00ke","followers_url":"https://api.github.com/users/jc00ke/followers","following_url":"https://api.github.com/users/jc00ke/following{/other_user}","gists_url":"https://api.github.com/users/jc00ke/gists{/gist_id}","starred_url":"https://api.github.com/users/jc00ke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jc00ke/subscriptions","organizations_url":"https://api.github.com/users/jc00ke/orgs","repos_url":"https://api.github.com/users/jc00ke/repos","events_url":"https://api.github.com/users/jc00ke/events{/privacy}","received_events_url":"https://api.github.com/users/jc00ke/received_events","type":"User","site_admin":false},"body":"I'm curious as to why we need to sample from 2 different codes? Is this necessary because we support international installations, or would be using just `Faker::Address.zip_code` suffice?","created_at":"2015-01-18T19:21:03Z","updated_at":"2015-01-18T19:21:03Z","html_url":"https://github.com/calagator/calagator/pull/221#discussion_r23136051","pull_request_url":"https://api.github.com/repos/calagator/calagator/pulls/221","_links":{"self":{"href":"https://api.github.com/repos/calagator/calagator/pulls/comments/23136051"},"html":{"href":"https://github.com/calagator/calagator/pull/221#discussion_r23136051"},"pull_request":{"href":"https://api.github.com/repos/calagator/calagator/pulls/221"}}},"pull_request":{"url":"https://api.github.com/repos/calagator/calagator/pulls/221","id":22973208,"html_url":"https://github.com/calagator/calagator/pull/221","diff_url":"https://github.com/calagator/calagator/pull/221.diff","patch_url":"https://github.com/calagator/calagator/pull/221.patch","issue_url":"https://api.github.com/repos/calagator/calagator/issues/221","number":221,"state":"open","locked":false,"title":"Add seeds (replaces #210)","user":{"login":"shawnacscott","id":1648967,"avatar_url":"https://avatars.githubusercontent.com/u/1648967?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnacscott","html_url":"https://github.com/shawnacscott","followers_url":"https://api.github.com/users/shawnacscott/followers","following_url":"https://api.github.com/users/shawnacscott/following{/other_user}","gists_url":"https://api.github.com/users/shawnacscott/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnacscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnacscott/subscriptions","organizations_url":"https://api.github.com/users/shawnacscott/orgs","repos_url":"https://api.github.com/users/shawnacscott/repos","events_url":"https://api.github.com/users/shawnacscott/events{/privacy}","received_events_url":"https://api.github.com/users/shawnacscott/received_events","type":"User","site_admin":false},"body":"It's been a bit, and I wanted to get the updated code for this in for approval, so I'm opening this PR with the most recent code, and closing #210.","created_at":"2014-10-18T21:30:36Z","updated_at":"2015-01-18T19:21:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e9812d112b984a60971332b7f3f3fb46dca966b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calagator/calagator/pulls/221/commits","review_comments_url":"https://api.github.com/repos/calagator/calagator/pulls/221/comments","review_comment_url":"https://api.github.com/repos/calagator/calagator/pulls/comments/{number}","comments_url":"https://api.github.com/repos/calagator/calagator/issues/221/comments","statuses_url":"https://api.github.com/repos/calagator/calagator/statuses/9b177cb81aff8954ca335521b93e93784e4a7c78","head":{"label":"shawnacscott:add_seeds","ref":"add_seeds","sha":"9b177cb81aff8954ca335521b93e93784e4a7c78","user":{"login":"shawnacscott","id":1648967,"avatar_url":"https://avatars.githubusercontent.com/u/1648967?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnacscott","html_url":"https://github.com/shawnacscott","followers_url":"https://api.github.com/users/shawnacscott/followers","following_url":"https://api.github.com/users/shawnacscott/following{/other_user}","gists_url":"https://api.github.com/users/shawnacscott/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnacscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnacscott/subscriptions","organizations_url":"https://api.github.com/users/shawnacscott/orgs","repos_url":"https://api.github.com/users/shawnacscott/repos","events_url":"https://api.github.com/users/shawnacscott/events{/privacy}","received_events_url":"https://api.github.com/users/shawnacscott/received_events","type":"User","site_admin":false},"repo":{"id":13726733,"name":"calagator","full_name":"shawnacscott/calagator","owner":{"login":"shawnacscott","id":1648967,"avatar_url":"https://avatars.githubusercontent.com/u/1648967?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnacscott","html_url":"https://github.com/shawnacscott","followers_url":"https://api.github.com/users/shawnacscott/followers","following_url":"https://api.github.com/users/shawnacscott/following{/other_user}","gists_url":"https://api.github.com/users/shawnacscott/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnacscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnacscott/subscriptions","organizations_url":"https://api.github.com/users/shawnacscott/orgs","repos_url":"https://api.github.com/users/shawnacscott/repos","events_url":"https://api.github.com/users/shawnacscott/events{/privacy}","received_events_url":"https://api.github.com/users/shawnacscott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shawnacscott/calagator","description":"An event aggregator based in Portland, OR","fork":true,"url":"https://api.github.com/repos/shawnacscott/calagator","forks_url":"https://api.github.com/repos/shawnacscott/calagator/forks","keys_url":"https://api.github.com/repos/shawnacscott/calagator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shawnacscott/calagator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shawnacscott/calagator/teams","hooks_url":"https://api.github.com/repos/shawnacscott/calagator/hooks","issue_events_url":"https://api.github.com/repos/shawnacscott/calagator/issues/events{/number}","events_url":"https://api.github.com/repos/shawnacscott/calagator/events","assignees_url":"https://api.github.com/repos/shawnacscott/calagator/assignees{/user}","branches_url":"https://api.github.com/repos/shawnacscott/calagator/branches{/branch}","tags_url":"https://api.github.com/repos/shawnacscott/calagator/tags","blobs_url":"https://api.github.com/repos/shawnacscott/calagator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shawnacscott/calagator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shawnacscott/calagator/git/refs{/sha}","trees_url":"https://api.github.com/repos/shawnacscott/calagator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shawnacscott/calagator/statuses/{sha}","languages_url":"https://api.github.com/repos/shawnacscott/calagator/languages","stargazers_url":"https://api.github.com/repos/shawnacscott/calagator/stargazers","contributors_url":"https://api.github.com/repos/shawnacscott/calagator/contributors","subscribers_url":"https://api.github.com/repos/shawnacscott/calagator/subscribers","subscription_url":"https://api.github.com/repos/shawnacscott/calagator/subscription","commits_url":"https://api.github.com/repos/shawnacscott/calagator/commits{/sha}","git_commits_url":"https://api.github.com/repos/shawnacscott/calagator/git/commits{/sha}","comments_url":"https://api.github.com/repos/shawnacscott/calagator/comments{/number}","issue_comment_url":"https://api.github.com/repos/shawnacscott/calagator/issues/comments/{number}","contents_url":"https://api.github.com/repos/shawnacscott/calagator/contents/{+path}","compare_url":"https://api.github.com/repos/shawnacscott/calagator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shawnacscott/calagator/merges","archive_url":"https://api.github.com/repos/shawnacscott/calagator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shawnacscott/calagator/downloads","issues_url":"https://api.github.com/repos/shawnacscott/calagator/issues{/number}","pulls_url":"https://api.github.com/repos/shawnacscott/calagator/pulls{/number}","milestones_url":"https://api.github.com/repos/shawnacscott/calagator/milestones{/number}","notifications_url":"https://api.github.com/repos/shawnacscott/calagator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shawnacscott/calagator/labels{/name}","releases_url":"https://api.github.com/repos/shawnacscott/calagator/releases{/id}","created_at":"2013-10-20T20:55:39Z","updated_at":"2014-06-28T23:59:56Z","pushed_at":"2015-01-18T05:30:10Z","git_url":"git://github.com/shawnacscott/calagator.git","ssh_url":"git@github.com:shawnacscott/calagator.git","clone_url":"https://github.com/shawnacscott/calagator.git","svn_url":"https://github.com/shawnacscott/calagator","homepage":"http://calagator.org","size":14494,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"calagator:master","ref":"master","sha":"b6ba04a63143c06c287181a5cdf92d8bcb9cbf92","user":{"login":"calagator","id":45116,"avatar_url":"https://avatars.githubusercontent.com/u/45116?v=3","gravatar_id":"","url":"https://api.github.com/users/calagator","html_url":"https://github.com/calagator","followers_url":"https://api.github.com/users/calagator/followers","following_url":"https://api.github.com/users/calagator/following{/other_user}","gists_url":"https://api.github.com/users/calagator/gists{/gist_id}","starred_url":"https://api.github.com/users/calagator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calagator/subscriptions","organizations_url":"https://api.github.com/users/calagator/orgs","repos_url":"https://api.github.com/users/calagator/repos","events_url":"https://api.github.com/users/calagator/events{/privacy}","received_events_url":"https://api.github.com/users/calagator/received_events","type":"Organization","site_admin":false},"repo":{"id":104937,"name":"calagator","full_name":"calagator/calagator","owner":{"login":"calagator","id":45116,"avatar_url":"https://avatars.githubusercontent.com/u/45116?v=3","gravatar_id":"","url":"https://api.github.com/users/calagator","html_url":"https://github.com/calagator","followers_url":"https://api.github.com/users/calagator/followers","following_url":"https://api.github.com/users/calagator/following{/other_user}","gists_url":"https://api.github.com/users/calagator/gists{/gist_id}","starred_url":"https://api.github.com/users/calagator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calagator/subscriptions","organizations_url":"https://api.github.com/users/calagator/orgs","repos_url":"https://api.github.com/users/calagator/repos","events_url":"https://api.github.com/users/calagator/events{/privacy}","received_events_url":"https://api.github.com/users/calagator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calagator/calagator","description":"An event aggregator based in Portland, OR","fork":false,"url":"https://api.github.com/repos/calagator/calagator","forks_url":"https://api.github.com/repos/calagator/calagator/forks","keys_url":"https://api.github.com/repos/calagator/calagator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calagator/calagator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calagator/calagator/teams","hooks_url":"https://api.github.com/repos/calagator/calagator/hooks","issue_events_url":"https://api.github.com/repos/calagator/calagator/issues/events{/number}","events_url":"https://api.github.com/repos/calagator/calagator/events","assignees_url":"https://api.github.com/repos/calagator/calagator/assignees{/user}","branches_url":"https://api.github.com/repos/calagator/calagator/branches{/branch}","tags_url":"https://api.github.com/repos/calagator/calagator/tags","blobs_url":"https://api.github.com/repos/calagator/calagator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calagator/calagator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calagator/calagator/git/refs{/sha}","trees_url":"https://api.github.com/repos/calagator/calagator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calagator/calagator/statuses/{sha}","languages_url":"https://api.github.com/repos/calagator/calagator/languages","stargazers_url":"https://api.github.com/repos/calagator/calagator/stargazers","contributors_url":"https://api.github.com/repos/calagator/calagator/contributors","subscribers_url":"https://api.github.com/repos/calagator/calagator/subscribers","subscription_url":"https://api.github.com/repos/calagator/calagator/subscription","commits_url":"https://api.github.com/repos/calagator/calagator/commits{/sha}","git_commits_url":"https://api.github.com/repos/calagator/calagator/git/commits{/sha}","comments_url":"https://api.github.com/repos/calagator/calagator/comments{/number}","issue_comment_url":"https://api.github.com/repos/calagator/calagator/issues/comments/{number}","contents_url":"https://api.github.com/repos/calagator/calagator/contents/{+path}","compare_url":"https://api.github.com/repos/calagator/calagator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calagator/calagator/merges","archive_url":"https://api.github.com/repos/calagator/calagator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calagator/calagator/downloads","issues_url":"https://api.github.com/repos/calagator/calagator/issues{/number}","pulls_url":"https://api.github.com/repos/calagator/calagator/pulls{/number}","milestones_url":"https://api.github.com/repos/calagator/calagator/milestones{/number}","notifications_url":"https://api.github.com/repos/calagator/calagator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calagator/calagator/labels{/name}","releases_url":"https://api.github.com/repos/calagator/calagator/releases{/id}","created_at":"2009-01-11T01:08:17Z","updated_at":"2015-01-18T02:21:21Z","pushed_at":"2015-01-18T02:21:21Z","git_url":"git://github.com/calagator/calagator.git","ssh_url":"git@github.com:calagator/calagator.git","clone_url":"https://github.com/calagator/calagator.git","svn_url":"https://github.com/calagator/calagator","homepage":"http://calagator.org","size":18881,"stargazers_count":219,"watchers_count":219,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"open_issues_count":56,"forks":156,"open_issues":56,"watchers":219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calagator/calagator/pulls/221"},"html":{"href":"https://github.com/calagator/calagator/pull/221"},"issue":{"href":"https://api.github.com/repos/calagator/calagator/issues/221"},"comments":{"href":"https://api.github.com/repos/calagator/calagator/issues/221/comments"},"review_comments":{"href":"https://api.github.com/repos/calagator/calagator/pulls/221/comments"},"review_comment":{"href":"https://api.github.com/repos/calagator/calagator/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/calagator/calagator/pulls/221/commits"},"statuses":{"href":"https://api.github.com/repos/calagator/calagator/statuses/9b177cb81aff8954ca335521b93e93784e4a7c78"}}}}