{"action":"created","comment":{"url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/comments/79296619","id":79296619,"diff_hunk":"@@ -1,70 +1,75 @@\n+# frozen_string_literal: true\n require 'test_helper'\n \n require 'eaternet'\n require 'eaternet/lives_1_0'\n \n-AUSTIN_CSV = 'test/fixtures/austin.csv'\n-\n class AustinAdapterTest < Minitest::Test\n-  @@agency = Eaternet::Austin.new(csv_path: AUSTIN_CSV)\n+  def austin_agency\n+    Eaternet::Austin.new\n+  end\n \n   #\n   # Businesses\n   #\n \n   def test_businesses_returns_an_enumerator_of_business\n-    assert enumerable_of? Eaternet::Lives_1_0::Business, @@agency.businesses\n-  end\n-\n-  def test_businesses_returns_lives_attributes\n-    b = @@agency.businesses.first\n-    assert_equal '2801033', b.business_id\n-    assert_equal '15th Street Cafe', b.name\n-    assert_equal '303 W 15TH ST', b.address\n-    assert_equal 'AUSTIN', b.city\n-    assert_equal '78701', b.postal_code\n-    assert_equal 'TX', b.state\n-    assert_equal 30.277553492000038, b.latitude\n-    assert_equal -97.74209889799994, b.longitude\n+    VCR.use_cassette(AUSTIN_CASSETTE) do\n+      assert enumerable_of? Eaternet::Lives_1_0::Business, austin_agency.businesses\n+    end\n   end\n \n-  def test_businesses_returns_correct_city\n-    b = @@agency.businesses.to_a[2]\n-    assert_equal 'BUDA', b.city\n+  def test_businesses_returns_correct_attributes\n+    VCR.use_cassette(AUSTIN_CASSETTE) do\n+      b = austin_agency.businesses.first\n+      assert_equal '2801033', b.business_id\n+      assert_equal '15th Street Cafe', b.name\n+      assert_equal '303 W 15TH ST', b.address\n+      assert_equal 'AUSTIN', b.city\n+      assert_equal '78701', b.postal_code\n+      assert_equal 'TX', b.state\n+      assert_equal 30.277553492000038, b.latitude\n+      assert_equal(-97.74209889799994, b.longitude)\n+    end\n   end\n \n-  def test_businesses_returns_unique_rows\n-    assert_equal 3, @@agency.businesses.to_a.size\n-  end\n \n   #\n   # Inspections\n   #\n \n   def test_inspections_returns_an_enumerable_of_inspection\n-    assert enumerable_of? Eaternet::Lives_1_0::Inspection, @@agency.inspections\n+    VCR.use_cassette(AUSTIN_CASSETTE) do\n+      assert enumerable_of? Eaternet::Lives_1_0::Inspection, austin_agency.inspections\n+    end\n   end\n \n   def test_inspections_returns_correct_attributes\n-    i = @@agency.inspections.first\n-    assert_equal '2801033',             i.business_id\n-    assert_equal Date.new(2015, 5, 13), i.date\n-    assert_equal 97,                    i.score\n+    VCR.use_cassette(AUSTIN_CASSETTE) do\n+      i = austin_agency.inspections.find { |x|","path":"test/eaternet/agencies/austin_test.rb","position":76,"original_position":76,"commit_id":"c0a1080ec76bdf7f9327c0bff868fda69d679412","original_commit_id":"c0a1080ec76bdf7f9327c0bff868fda69d679412","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer detect over find.<br>Avoid using {...} for multi-line blocks.","created_at":"2016-09-18T03:25:25Z","updated_at":"2016-09-18T03:25:26Z","html_url":"https://github.com/eaternet/adapters-ruby/pull/52#discussion_r79296619","pull_request_url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/comments/79296619"},"html":{"href":"https://github.com/eaternet/adapters-ruby/pull/52#discussion_r79296619"},"pull_request":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52","id":85693921,"html_url":"https://github.com/eaternet/adapters-ruby/pull/52","diff_url":"https://github.com/eaternet/adapters-ruby/pull/52.diff","patch_url":"https://github.com/eaternet/adapters-ruby/pull/52.patch","issue_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues/52","number":52,"state":"open","locked":false,"title":"Austin fix","user":{"login":"dogweather","id":150670,"avatar_url":"https://avatars.githubusercontent.com/u/150670?v=3","gravatar_id":"","url":"https://api.github.com/users/dogweather","html_url":"https://github.com/dogweather","followers_url":"https://api.github.com/users/dogweather/followers","following_url":"https://api.github.com/users/dogweather/following{/other_user}","gists_url":"https://api.github.com/users/dogweather/gists{/gist_id}","starred_url":"https://api.github.com/users/dogweather/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogweather/subscriptions","organizations_url":"https://api.github.com/users/dogweather/orgs","repos_url":"https://api.github.com/users/dogweather/repos","events_url":"https://api.github.com/users/dogweather/events{/privacy}","received_events_url":"https://api.github.com/users/dogweather/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-18T02:20:03Z","updated_at":"2016-09-18T03:25:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21ebf2c21cd044dabdefe0f99b7b8ad1cfa53f2d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52/commits","review_comments_url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52/comments","review_comment_url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues/52/comments","statuses_url":"https://api.github.com/repos/eaternet/adapters-ruby/statuses/c0a1080ec76bdf7f9327c0bff868fda69d679412","head":{"label":"eaternet:austin-fix","ref":"austin-fix","sha":"c0a1080ec76bdf7f9327c0bff868fda69d679412","user":{"login":"eaternet","id":10624333,"avatar_url":"https://avatars.githubusercontent.com/u/10624333?v=3","gravatar_id":"","url":"https://api.github.com/users/eaternet","html_url":"https://github.com/eaternet","followers_url":"https://api.github.com/users/eaternet/followers","following_url":"https://api.github.com/users/eaternet/following{/other_user}","gists_url":"https://api.github.com/users/eaternet/gists{/gist_id}","starred_url":"https://api.github.com/users/eaternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaternet/subscriptions","organizations_url":"https://api.github.com/users/eaternet/orgs","repos_url":"https://api.github.com/users/eaternet/repos","events_url":"https://api.github.com/users/eaternet/events{/privacy}","received_events_url":"https://api.github.com/users/eaternet/received_events","type":"Organization","site_admin":false},"repo":{"id":29956960,"name":"adapters-ruby","full_name":"eaternet/adapters-ruby","owner":{"login":"eaternet","id":10624333,"avatar_url":"https://avatars.githubusercontent.com/u/10624333?v=3","gravatar_id":"","url":"https://api.github.com/users/eaternet","html_url":"https://github.com/eaternet","followers_url":"https://api.github.com/users/eaternet/followers","following_url":"https://api.github.com/users/eaternet/following{/other_user}","gists_url":"https://api.github.com/users/eaternet/gists{/gist_id}","starred_url":"https://api.github.com/users/eaternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaternet/subscriptions","organizations_url":"https://api.github.com/users/eaternet/orgs","repos_url":"https://api.github.com/users/eaternet/repos","events_url":"https://api.github.com/users/eaternet/events{/privacy}","received_events_url":"https://api.github.com/users/eaternet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eaternet/adapters-ruby","description":"Ruby plugins for local restaurant health inspections","fork":false,"url":"https://api.github.com/repos/eaternet/adapters-ruby","forks_url":"https://api.github.com/repos/eaternet/adapters-ruby/forks","keys_url":"https://api.github.com/repos/eaternet/adapters-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eaternet/adapters-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eaternet/adapters-ruby/teams","hooks_url":"https://api.github.com/repos/eaternet/adapters-ruby/hooks","issue_events_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/eaternet/adapters-ruby/events","assignees_url":"https://api.github.com/repos/eaternet/adapters-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/eaternet/adapters-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/eaternet/adapters-ruby/tags","blobs_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eaternet/adapters-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/eaternet/adapters-ruby/languages","stargazers_url":"https://api.github.com/repos/eaternet/adapters-ruby/stargazers","contributors_url":"https://api.github.com/repos/eaternet/adapters-ruby/contributors","subscribers_url":"https://api.github.com/repos/eaternet/adapters-ruby/subscribers","subscription_url":"https://api.github.com/repos/eaternet/adapters-ruby/subscription","commits_url":"https://api.github.com/repos/eaternet/adapters-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/eaternet/adapters-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/eaternet/adapters-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/eaternet/adapters-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eaternet/adapters-ruby/merges","archive_url":"https://api.github.com/repos/eaternet/adapters-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eaternet/adapters-ruby/downloads","issues_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/eaternet/adapters-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/eaternet/adapters-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eaternet/adapters-ruby/labels{/name}","releases_url":"https://api.github.com/repos/eaternet/adapters-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/eaternet/adapters-ruby/deployments","created_at":"2015-01-28T08:02:48Z","updated_at":"2016-04-24T06:20:30Z","pushed_at":"2016-09-18T03:25:16Z","git_url":"git://github.com/eaternet/adapters-ruby.git","ssh_url":"git@github.com:eaternet/adapters-ruby.git","clone_url":"https://github.com/eaternet/adapters-ruby.git","svn_url":"https://github.com/eaternet/adapters-ruby","homepage":"https://eaternet.io","size":7616,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":5,"default_branch":"master"}},"base":{"label":"eaternet:master","ref":"master","sha":"9cc0adb33f2256e8dea9115045cf9f99056bdba3","user":{"login":"eaternet","id":10624333,"avatar_url":"https://avatars.githubusercontent.com/u/10624333?v=3","gravatar_id":"","url":"https://api.github.com/users/eaternet","html_url":"https://github.com/eaternet","followers_url":"https://api.github.com/users/eaternet/followers","following_url":"https://api.github.com/users/eaternet/following{/other_user}","gists_url":"https://api.github.com/users/eaternet/gists{/gist_id}","starred_url":"https://api.github.com/users/eaternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaternet/subscriptions","organizations_url":"https://api.github.com/users/eaternet/orgs","repos_url":"https://api.github.com/users/eaternet/repos","events_url":"https://api.github.com/users/eaternet/events{/privacy}","received_events_url":"https://api.github.com/users/eaternet/received_events","type":"Organization","site_admin":false},"repo":{"id":29956960,"name":"adapters-ruby","full_name":"eaternet/adapters-ruby","owner":{"login":"eaternet","id":10624333,"avatar_url":"https://avatars.githubusercontent.com/u/10624333?v=3","gravatar_id":"","url":"https://api.github.com/users/eaternet","html_url":"https://github.com/eaternet","followers_url":"https://api.github.com/users/eaternet/followers","following_url":"https://api.github.com/users/eaternet/following{/other_user}","gists_url":"https://api.github.com/users/eaternet/gists{/gist_id}","starred_url":"https://api.github.com/users/eaternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaternet/subscriptions","organizations_url":"https://api.github.com/users/eaternet/orgs","repos_url":"https://api.github.com/users/eaternet/repos","events_url":"https://api.github.com/users/eaternet/events{/privacy}","received_events_url":"https://api.github.com/users/eaternet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eaternet/adapters-ruby","description":"Ruby plugins for local restaurant health inspections","fork":false,"url":"https://api.github.com/repos/eaternet/adapters-ruby","forks_url":"https://api.github.com/repos/eaternet/adapters-ruby/forks","keys_url":"https://api.github.com/repos/eaternet/adapters-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eaternet/adapters-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eaternet/adapters-ruby/teams","hooks_url":"https://api.github.com/repos/eaternet/adapters-ruby/hooks","issue_events_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/eaternet/adapters-ruby/events","assignees_url":"https://api.github.com/repos/eaternet/adapters-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/eaternet/adapters-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/eaternet/adapters-ruby/tags","blobs_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eaternet/adapters-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/eaternet/adapters-ruby/languages","stargazers_url":"https://api.github.com/repos/eaternet/adapters-ruby/stargazers","contributors_url":"https://api.github.com/repos/eaternet/adapters-ruby/contributors","subscribers_url":"https://api.github.com/repos/eaternet/adapters-ruby/subscribers","subscription_url":"https://api.github.com/repos/eaternet/adapters-ruby/subscription","commits_url":"https://api.github.com/repos/eaternet/adapters-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/eaternet/adapters-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/eaternet/adapters-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/eaternet/adapters-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/eaternet/adapters-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eaternet/adapters-ruby/merges","archive_url":"https://api.github.com/repos/eaternet/adapters-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eaternet/adapters-ruby/downloads","issues_url":"https://api.github.com/repos/eaternet/adapters-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/eaternet/adapters-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/eaternet/adapters-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/eaternet/adapters-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eaternet/adapters-ruby/labels{/name}","releases_url":"https://api.github.com/repos/eaternet/adapters-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/eaternet/adapters-ruby/deployments","created_at":"2015-01-28T08:02:48Z","updated_at":"2016-04-24T06:20:30Z","pushed_at":"2016-09-18T03:25:16Z","git_url":"git://github.com/eaternet/adapters-ruby.git","ssh_url":"git@github.com:eaternet/adapters-ruby.git","clone_url":"https://github.com/eaternet/adapters-ruby.git","svn_url":"https://github.com/eaternet/adapters-ruby","homepage":"https://eaternet.io","size":7616,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52"},"html":{"href":"https://github.com/eaternet/adapters-ruby/pull/52"},"issue":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/issues/52"},"comments":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/eaternet/adapters-ruby/statuses/c0a1080ec76bdf7f9327c0bff868fda69d679412"}}}}
{"actor":{"display_login":"houndci-bot"}}