{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/comments/22894828","id":22894828,"diff_hunk":"@@ -15,6 +15,24 @@\n     restore_spec_configuration\n   end\n \n+  describe \"validate Fedora URL\" do \n+\n+    let(:good_url) { ActiveFedora.fedora_config.credentials[:url] }\n+    let(:bad_url) { good_url.gsub('/rest', '/') }\n+\n+    it \"should connect OK\" do \n+      expect(ActiveFedora::Base.logger).to_not receive(:warn)\n+      ActiveFedora::Fedora.new(:url => good_url, :base_path => '/test')\n+    end\n+\n+    it \"should not connect and warn\" do \n+      expect {\n+        expect(ActiveFedora::Base.logger).to receive(:warn)","path":"spec/unit/active_fedora_spec.rb","position":16,"original_position":16,"commit_id":"096f8ba56437992a86b744ad9056e3e7d6b7949d","original_commit_id":"096f8ba56437992a86b744ad9056e3e7d6b7949d","user":{"login":"mjgiarlo","id":131982,"avatar_url":"https://avatars.githubusercontent.com/u/131982?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"body":"Should this line be on the previous line, outside the `expect { ... }.to raise_error...`?","created_at":"2015-01-13T21:09:31Z","updated_at":"2015-01-13T21:09:31Z","html_url":"https://github.com/projecthydra/active_fedora/pull/684#discussion_r22894828","pull_request_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684","_links":{"self":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/comments/22894828"},"html":{"href":"https://github.com/projecthydra/active_fedora/pull/684#discussion_r22894828"},"pull_request":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684","id":27304399,"html_url":"https://github.com/projecthydra/active_fedora/pull/684","diff_url":"https://github.com/projecthydra/active_fedora/pull/684.diff","patch_url":"https://github.com/projecthydra/active_fedora/pull/684.patch","issue_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/684","number":684,"state":"open","locked":false,"title":"Warn user when initial connection to Fedora fails and the URL does not e...","user":{"login":"hectorcorrea","id":568286,"avatar_url":"https://avatars.githubusercontent.com/u/568286?v=3","gravatar_id":"","url":"https://api.github.com/users/hectorcorrea","html_url":"https://github.com/hectorcorrea","followers_url":"https://api.github.com/users/hectorcorrea/followers","following_url":"https://api.github.com/users/hectorcorrea/following{/other_user}","gists_url":"https://api.github.com/users/hectorcorrea/gists{/gist_id}","starred_url":"https://api.github.com/users/hectorcorrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectorcorrea/subscriptions","organizations_url":"https://api.github.com/users/hectorcorrea/orgs","repos_url":"https://api.github.com/users/hectorcorrea/repos","events_url":"https://api.github.com/users/hectorcorrea/events{/privacy}","received_events_url":"https://api.github.com/users/hectorcorrea/received_events","type":"User","site_admin":false},"body":"Addresses issue https://github.com/projecthydra/active_fedora/issues/656","created_at":"2015-01-13T21:02:12Z","updated_at":"2015-01-13T21:09:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95ee4bc810f2b975240f761a21dad7735c1500ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684/commits","review_comments_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684/comments","review_comment_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls/comments/{number}","comments_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/684/comments","statuses_url":"https://api.github.com/repos/projecthydra/active_fedora/statuses/096f8ba56437992a86b744ad9056e3e7d6b7949d","head":{"label":"projecthydra:warn_on_bad_fedora_url","ref":"warn_on_bad_fedora_url","sha":"096f8ba56437992a86b744ad9056e3e7d6b7949d","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":3867127,"name":"active_fedora","full_name":"projecthydra/active_fedora","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/active_fedora","description":"A Rails interface to the Fedora repository, akin to Active Model","fork":false,"url":"https://api.github.com/repos/projecthydra/active_fedora","forks_url":"https://api.github.com/repos/projecthydra/active_fedora/forks","keys_url":"https://api.github.com/repos/projecthydra/active_fedora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/active_fedora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/active_fedora/teams","hooks_url":"https://api.github.com/repos/projecthydra/active_fedora/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/active_fedora/events","assignees_url":"https://api.github.com/repos/projecthydra/active_fedora/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/active_fedora/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/active_fedora/tags","blobs_url":"https://api.github.com/repos/projecthydra/active_fedora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/active_fedora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/active_fedora/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/active_fedora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/active_fedora/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/active_fedora/languages","stargazers_url":"https://api.github.com/repos/projecthydra/active_fedora/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/active_fedora/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/active_fedora/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/active_fedora/subscription","commits_url":"https://api.github.com/repos/projecthydra/active_fedora/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/active_fedora/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/active_fedora/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/comments/{number}","contents_url":"https://api.github.com/repos/projecthydra/active_fedora/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/active_fedora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/active_fedora/merges","archive_url":"https://api.github.com/repos/projecthydra/active_fedora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/active_fedora/downloads","issues_url":"https://api.github.com/repos/projecthydra/active_fedora/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/active_fedora/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/active_fedora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/active_fedora/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/active_fedora/releases{/id}","created_at":"2012-03-29T15:01:13Z","updated_at":"2015-01-13T18:56:25Z","pushed_at":"2015-01-13T21:03:04Z","git_url":"git://github.com/projecthydra/active_fedora.git","ssh_url":"git@github.com:projecthydra/active_fedora.git","clone_url":"https://github.com/projecthydra/active_fedora.git","svn_url":"https://github.com/projecthydra/active_fedora","homepage":"","size":13394,"stargazers_count":27,"watchers_count":27,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":43,"forks":42,"open_issues":43,"watchers":27,"default_branch":"master"}},"base":{"label":"projecthydra:master","ref":"master","sha":"8852da744d85131f42913fba57e8f2a0d21ca39a","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":3867127,"name":"active_fedora","full_name":"projecthydra/active_fedora","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/active_fedora","description":"A Rails interface to the Fedora repository, akin to Active Model","fork":false,"url":"https://api.github.com/repos/projecthydra/active_fedora","forks_url":"https://api.github.com/repos/projecthydra/active_fedora/forks","keys_url":"https://api.github.com/repos/projecthydra/active_fedora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/active_fedora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/active_fedora/teams","hooks_url":"https://api.github.com/repos/projecthydra/active_fedora/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/active_fedora/events","assignees_url":"https://api.github.com/repos/projecthydra/active_fedora/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/active_fedora/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/active_fedora/tags","blobs_url":"https://api.github.com/repos/projecthydra/active_fedora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/active_fedora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/active_fedora/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/active_fedora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/active_fedora/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/active_fedora/languages","stargazers_url":"https://api.github.com/repos/projecthydra/active_fedora/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/active_fedora/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/active_fedora/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/active_fedora/subscription","commits_url":"https://api.github.com/repos/projecthydra/active_fedora/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/active_fedora/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/active_fedora/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/active_fedora/issues/comments/{number}","contents_url":"https://api.github.com/repos/projecthydra/active_fedora/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/active_fedora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/active_fedora/merges","archive_url":"https://api.github.com/repos/projecthydra/active_fedora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/active_fedora/downloads","issues_url":"https://api.github.com/repos/projecthydra/active_fedora/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/active_fedora/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/active_fedora/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/active_fedora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/active_fedora/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/active_fedora/releases{/id}","created_at":"2012-03-29T15:01:13Z","updated_at":"2015-01-13T18:56:25Z","pushed_at":"2015-01-13T21:03:04Z","git_url":"git://github.com/projecthydra/active_fedora.git","ssh_url":"git@github.com:projecthydra/active_fedora.git","clone_url":"https://github.com/projecthydra/active_fedora.git","svn_url":"https://github.com/projecthydra/active_fedora","homepage":"","size":13394,"stargazers_count":27,"watchers_count":27,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":43,"forks":42,"open_issues":43,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684"},"html":{"href":"https://github.com/projecthydra/active_fedora/pull/684"},"issue":{"href":"https://api.github.com/repos/projecthydra/active_fedora/issues/684"},"comments":{"href":"https://api.github.com/repos/projecthydra/active_fedora/issues/684/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/projecthydra/active_fedora/pulls/684/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra/active_fedora/statuses/096f8ba56437992a86b744ad9056e3e7d6b7949d"}}}}