octokit 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +0 -1
- metadata +5 -682
- data/spec/cassettes/Octokit_Client/_get/handles_query_params.json +0 -1
- data/spec/cassettes/Octokit_Client/_head/handles_query_params.json +0 -1
- data/spec/cassettes/Octokit_Client/_last_response/caches_the_last_agent_response.json +0 -1
- data/spec/cassettes/Octokit_Client/authentication/when_token_authenticated/fetches_and_memoizes_login.json +0 -1
- data/spec/cassettes/Octokit_Client/auto_pagination/fetches_all_the_pages.json +0 -1
- data/spec/cassettes/Octokit_Client/error_handling/raises_on_404.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_authorization/returns_a_single_authorization.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_authorizations/lists_existing_authorizations.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/with_idempotent_true/creates_a_new_authorization_with_options.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/with_idempotent_true/returns_an_existing_API_authorization_if_one_already_exists.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/without_idempotent_true/creates_a_new_API_authorization_each_time.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/without_idempotent_true/creates_a_new_authorization_with_options.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/without_idempotent_true/creates_an_API_authorization.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_a_one-off_token.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_the_current_token.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_update_authorization/updates_and_existing_authorization.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_commit_comment/returns_a_single_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_commit_comments/returns_a_list_of_comments_for_a_specific_commit.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_create_commit_comment/creates_a_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_delete_commit_comment/deletes_a_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_list_commit_comments/returns_a_list_of_all_commit_comments.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_update_commit_comment/updates_a_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commit/returns_a_commit.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits/returns_all_commits.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_before/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_before/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_before/returns_all_commits_until_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_between/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_between/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_between/returns_all_commits_until_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_on/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_on/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_on/returns_all_commits_on_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_since/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_since/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_since/returns_all_commits_since_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_compare/returns_a_comparison.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_create_commit/creates_a_commit.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_merge/merges_a_branch_into_another.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_archive_link/returns_the_headers_of_the_request.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_contents/returns_the_contents_of_a_file.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_File_object.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_file_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_repository_contents_at_a_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/does_not_add_new_lines.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_delete_contents/deletes_repository_contents_at_a_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_readme/returns_the_default_readme.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_update_contents/does_not_add_new_lines.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_update_contents/updates_repository_contents_at_a_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/_download/gets_a_single_download.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/_downloads/lists_available_downloads.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/creates_a_download_resource.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/posts_to_an_S3_url.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_delete_download/deletes_a_download.json +0 -1
- data/spec/cassettes/Octokit_Client_Emojis/_emojis/returns_all_github_emojis.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_issue_event/lists_issue_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_issue_events/lists_issue_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_organization_events/returns_all_events_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_organization_public_events/returns_an_organization_s_public_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_public_events/returns_all_public_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_received_events/returns_all_user_received_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_received_public_events/returns_public_user_received_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_repo_issue_events/lists_issue_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_repository_events/returns_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_repository_network_events/returns_events_for_a_repository_s_network.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_user_events/returns_all_user_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_user_public_events/returns_public_events_performed_by_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gist/returns_the_gist_by_ID.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/with_username_passed/returns_a_list_of_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/without_a_username_passed/returns_a_list_of_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_public_gists/returns_public_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist/creates_a_new_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist_comment/creates_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist/deletes_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist_comment/deletes_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_edit_gist/edit_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_fork_gist/forks_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comment/returns_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comments/returns_the_list_of_gist_comments.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_not_starred.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_starred.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gists/returns_a_list_of_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_star_gist/stars_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_starred_gists/returns_the_user_s_starred_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_unstar_gist/unstars_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_update_gist_comment/updates_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gitignore/_gitignore_template/returns_the_ruby_gitignore_template.json +0 -1
- data/spec/cassettes/Octokit_Client_Gitignore/_gitignore_templates/returns_all_gitignore_templates.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_delimited_labels.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_labels_array.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_issue_comment/returns_a_single_comment_for_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_issue_comments/returns_comments_for_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_list_issues/returns_dashboard_issues_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_list_issues/returns_issues_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_org_issues/returns_issues_for_the_organization_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_repository_issues_comments/returns_comments_for_all_issues_in_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_user_issues/returns_issues_for_the_authenticated_user_for_owned_and_member_repos.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_add_comment/adds_a_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_close_issue/closes_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_a_full_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_reopen_issue/reopens_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_update_issue/updates_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_delete_comment/deletes_an_existing_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_update_comment/updates_an_existing_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_a_color.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_default_color.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_delete_label_/deletes_a_label_from_the_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_label/returns_a_single_label.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_labels/returns_labels.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_lables_for_milestone/returns_all_labels_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_add_labels_to_an_issue/adds_labels_to_a_given_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_labels_for_issue/returns_all_labels_for_a_given_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_all_labels/removes_all_labels_from_the_specified_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_label/removes_a_label_from_the_specified_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_replace_all_labels/replaces_all_labels_for_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_label/_update_label/updates_a_label_with_a_new_color.json +0 -1
- data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_issues/returns_matching_issues.json +0 -1
- data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_repos/returns_matching_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_users/returns_matching_username.json +0 -1
- data/spec/cassettes/Octokit_Client_Markdown/_markdown/renders_markdown.json +0 -1
- data/spec/cassettes/Octokit_Client_Meta/_github_meta/returns_meta_information_about_github.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/_list_milestones/lists_milestones_belonging_to_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_create_milestone/creates_a_milestone.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_delete_milestone/deletes_a_milestone_from_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_milestone/gets_a_single_milestone_belonging_to_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_update_milestone/updates_a_milestone.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_mark_notifications_as_read/returns_true_when_notifications_are_marked_as_read.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_mark_repository_notifications_as_read/returns_true_when_notifications_for_a_repo_are_marked_as_read.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_notifications/lists_the_notifications_for_the_current_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_repository_notifications/lists_all_notifications_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_delete_thread_subscription/returns_true_with_successful_thread_deletion.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_mark_thread_as_read/marks_a_thread_as_read.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_notifications/returns_notifications_for_a_specific_thread.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_subscription/returns_a_thread_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_update_thread_subscription/updates_a_thread_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_blob/returns_a_blob.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_create_blob/creates_a_blob.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_create_tag/creates_a_tag.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_create_tree/creates_a_tree.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_tag/returns_a_tag.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree_recursively.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization/returns_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_member_/checks_organization_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_members/returns_all_public_members_of_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_public_member_/checks_publicized_org_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_repositories/returns_all_public_repositories_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_teams/returns_all_teams_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_update_organization/updates_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_member/adds_a_team_member.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_repository/adds_a_team_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_create_team/creates_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_delete_team/deletes_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_publicize_membership/publicizes_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_member/removes_a_team_member.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_repository/removes_a_team_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team/returns_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_member_/checks_if_a_user_is_member_of_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_members/returns_team_members.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_repositories/returns_team_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_unpublicize_membership/unpublicizes_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_update_team/updates_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/raises_an_error_when_topic_is_not_recognized.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/subscribes_to_pull_events.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe_service_hook/subscribes_to_pull_events_on_specified_topic.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_unsubscribe/unsubscribes_from_pull_events.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/unsubscribe_service_hook/unsubscribes_to_stop_receiving_events_on_specified_topic.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_create_pull_request_for_issue/creates_a_pull_request_and_attach_it_to_an_existing_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_comment/returns_a_comment_on_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_comments/returns_the_comments_for_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_commits/returns_the_commits_for_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_files/lists_files_for_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_requests/returns_all_pull_requests.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_requests_comments/returns_all_comments_on_all_pull_requests.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_close_pull_request/closes_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_create_pull_request/creates_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_merge_pull_request/merges_the_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_merged_/returns_whether_the_pull_request_has_been_merged.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_request/returns_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_update_pull_request/updates_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment/creates_a_new_comment_on_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment_reply/creates_a_new_reply_to_a_pull_request_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_delete_pull_request_comment/deletes_a_pull_request_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_update_pull_request_comment/updates_a_pull_request_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/_ref/returns_a_tags_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/_refs/returns_all_refs.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/_refs/returns_all_tag_refs.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_create_ref/creates_a_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_delete_ref/deletes_an_existing_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_update_ref/updates_a_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_create_release/creates_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_delete_release/deletes_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_release/gets_a_single_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_release_assets/lists_assets_for_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_releases/lists_releases_for_a_repo.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_update_release/updates_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_release_assets/lists_assets_for_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_update_release_asset/edits_a_release_asset.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/guesses_the_content_type_for_an_asset.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/uploads_a_release_asset_as_file_object.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/uploads_a_release_asset_by_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/uploads_a_release_asset_with_a_default_name.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_all_repositories/returns_all_repositories_on_github.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_assignees/lists_all_the_available_assignees_owner_collaborators_.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_repository_s_branches.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_single_branch.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_check_assignee/checks_to_see_if_a_particular_user_is_an_assignee_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_collaborators/returns_a_repository_s_collaborators.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors_excluding_anonymous.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_create_repository/creates_a_repository_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_delete_subscription/returns_true_when_repo_subscription_deleted.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_fork/forks_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_languages/returns_a_repository_s_languages.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_network/returns_a_repository_s_network.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repositories/returns_a_user_s_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repositories/returns_authenticated_user_s_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repository/returns_the_matching_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repository_/returns_false_if_the_repository_doesn_t_exist.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repository_/returns_true_if_the_repository_exists.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_star/stars_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_stargazers/returns_all_repository_stargazers.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_subscribers/lists_all_the_users_watching_the_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_subscription/returns_a_repository_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_tags/returns_a_repository_s_tags.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_unstar/unstars_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_unwatch/unwatches_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_update_subscription/updates_a_repository_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_watch/watches_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_watchers/returns_all_repository_watchers.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_add_collaborator/adds_a_repository_collaborators.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_create_repository/creates_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_delete_repository/deletes_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_deploy_keys/returns_a_repository_s_deploy_keys.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_hooks/returns_a_repository_s_hooks.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_remove_collaborator/removes_a_repository_collaborators.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_repository_teams/returns_all_repository_teams.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_update_repository/updates_the_matching_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_requiring_an_existing_deploy_key/_add_deploy_key/adds_a_repository_deploy_keys.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_create_hook/creates_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_edit_hook/edits_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_hook/returns_a_repository_s_single_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_remove_hook/removes_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_test_hook/tests_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat.json +0 -1
- data/spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat_with_custom_text.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_code/searches_code.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_issues/searches_issues.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_repositories/searches_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_users/searches_users.json +0 -1
- data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_current_system_status.json +0 -1
- data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_most_recent_status_messages.json +0 -1
- data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status_last_message/returns_the_last_human_message.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_code_frequency_stats/returns_the_code_frequency_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_commit_activity_stats/returns_the_commit_activity_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_contributors_stats/returns_contributors_and_their_contribution_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_participation_stats/returns_the_owner_and_contributor_participation_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_punch_card_stats/returns_commit_count_by_hour_punch_card_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Statuses/_create_status/creates_status.json +0 -1
- data/spec/cassettes/Octokit_Client_Statuses/_statuses/lists_commit_statuses.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_add_email/adds_an_email_address.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_all_users/returns_all_GitHub_users.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_emails/returns_email_addresses.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_follow/follows_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_followers/returns_followers_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_followers/returns_the_authenticated_user_s_followers.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_following/returns_following_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_following/returns_the_authenticated_user_s_following.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_follows_/checks_if_given_user_is_following_target_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_follows_/checks_if_the_authenticated_user_follows_another.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_keys/returns_public_keys_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_remove_email/removes_an_email_address.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository_deprecated_.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_a_user_watches_for_notifications.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_the_authenticated_user_watches_for_notifications.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_unfollow/unfollows_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_update_user/updates_a_user_profile.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_user/returns_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_user/returns_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_user_keys/returns_public_keys_for_another_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_validate_credentials/validates_username_and_password.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_add_key/adds_a_public_key.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_key/returns_a_public_key.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_remove_key/removes_a_public_key.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_update_key/updates_a_public_key.json +0 -1
- data/spec/cassettes/delete_authorization.json +0 -1
- data/spec/cassettes/rate_limit.json +0 -1
- data/spec/cassettes/root.json +0 -1
- data/spec/fixtures/large_file.txt +0 -48
- data/spec/fixtures/new_file.txt +0 -1
- data/spec/fixtures/updated_file.txt +0 -1
- data/spec/fixtures/upload.png +0 -0
- data/spec/fixtures/user.json +0 -31
- data/spec/fixtures/web_flow_token.json +0 -4
- data/spec/helper.rb +0 -133
- data/spec/octokit/client/authorizations_spec.rb +0 -118
- data/spec/octokit/client/commit_comments_spec.rb +0 -62
- data/spec/octokit/client/commits_spec.rb +0 -139
- data/spec/octokit/client/contents_spec.rb +0 -131
- data/spec/octokit/client/downloads_spec.rb +0 -59
- data/spec/octokit/client/emojis_spec.rb +0 -12
- data/spec/octokit/client/events_spec.rb +0 -106
- data/spec/octokit/client/gists_spec.rb +0 -184
- data/spec/octokit/client/gitignore_spec.rb +0 -26
- data/spec/octokit/client/issues_spec.rb +0 -174
- data/spec/octokit/client/labels_spec.rb +0 -115
- data/spec/octokit/client/legacy_search_spec.rb +0 -42
- data/spec/octokit/client/markdown_spec.rb +0 -20
- data/spec/octokit/client/meta_spec.rb +0 -14
- data/spec/octokit/client/milestones_spec.rb +0 -59
- data/spec/octokit/client/notifications_spec.rb +0 -85
- data/spec/octokit/client/objects_spec.rb +0 -71
- data/spec/octokit/client/organizations_spec.rb +0 -197
- data/spec/octokit/client/pub_sub_hubbub_spec.rb +0 -93
- data/spec/octokit/client/pull_requests_spec.rb +0 -186
- data/spec/octokit/client/rate_limit_spec.rb +0 -44
- data/spec/octokit/client/refs_spec.rb +0 -70
- data/spec/octokit/client/releases_spec.rb +0 -137
- data/spec/octokit/client/repositories_spec.rb +0 -406
- data/spec/octokit/client/say_spec.rb +0 -23
- data/spec/octokit/client/search_spec.rb +0 -59
- data/spec/octokit/client/service_status_spec.rb +0 -37
- data/spec/octokit/client/stats_spec.rb +0 -105
- data/spec/octokit/client/statuses_spec.rb +0 -28
- data/spec/octokit/client/users_spec.rb +0 -220
- data/spec/octokit/client_spec.rb +0 -576
- data/spec/octokit/gist_spec.rb +0 -49
- data/spec/octokit/rate_limit_spec.rb +0 -30
- data/spec/octokit/repository_spec.rb +0 -55
- data/spec/octokit_spec.rb +0 -46
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Gitignore do
|
4
|
-
|
5
|
-
before do
|
6
|
-
@client = oauth_client
|
7
|
-
end
|
8
|
-
|
9
|
-
describe ".gitignore_templates", :vcr do
|
10
|
-
it "returns all gitignore templates" do
|
11
|
-
templates = @client.gitignore_templates
|
12
|
-
expect(templates).to be_kind_of Array
|
13
|
-
assert_requested :get, github_url("/gitignore/templates")
|
14
|
-
end
|
15
|
-
end # .gitignore_templates
|
16
|
-
|
17
|
-
describe ".gitignore_template", :vcr do
|
18
|
-
it "returns the ruby gitignore template" do
|
19
|
-
template = @client.gitignore_template("Ruby")
|
20
|
-
expect(template.name).to eq "Ruby"
|
21
|
-
expect(template.source).to include "*.gem\n"
|
22
|
-
assert_requested :get, github_url("/gitignore/templates/Ruby")
|
23
|
-
end
|
24
|
-
end # .gitignore_template
|
25
|
-
|
26
|
-
end
|
@@ -1,174 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Issues do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
after do
|
11
|
-
Octokit.reset!
|
12
|
-
end
|
13
|
-
|
14
|
-
describe ".list_issues", :vcr do
|
15
|
-
it "returns issues for a repository" do
|
16
|
-
issues = @client.issues("sferik/rails_admin")
|
17
|
-
expect(issues).to be_kind_of Array
|
18
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/issues")
|
19
|
-
end
|
20
|
-
it "returns dashboard issues for the authenticated user" do
|
21
|
-
issues = @client.issues
|
22
|
-
expect(issues).to be_kind_of Array
|
23
|
-
assert_requested :get, github_url("/issues")
|
24
|
-
end
|
25
|
-
end # .list_issues
|
26
|
-
|
27
|
-
describe ".user_issues", :vcr do
|
28
|
-
it "returns issues for the authenticated user for owned and member repos" do
|
29
|
-
issues = @client.user_issues
|
30
|
-
expect(issues).to be_kind_of Array
|
31
|
-
assert_requested :get, github_url("/user/issues")
|
32
|
-
end
|
33
|
-
end # .user_issues
|
34
|
-
|
35
|
-
describe ".org_issues", :vcr do
|
36
|
-
it "returns issues for the organization for the authenticated user" do
|
37
|
-
issues = @client.org_issues('dotfiles')
|
38
|
-
expect(issues).to be_kind_of Array
|
39
|
-
assert_requested :get, github_url("/orgs/dotfiles/issues")
|
40
|
-
end
|
41
|
-
end # .org_issues
|
42
|
-
|
43
|
-
describe ".create_issue", :vcr, :match_requests_on => [:path, :body] do
|
44
|
-
it "creates an issue" do
|
45
|
-
issue = @client.create_issue \
|
46
|
-
"api-playground/api-sandbox",
|
47
|
-
"Migrate issues to v3",
|
48
|
-
"Move all Issues calls to v3 of the API"
|
49
|
-
expect(issue.title).to match /Migrate/
|
50
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/issues")
|
51
|
-
end
|
52
|
-
it "creates an issue with delimited labels" do
|
53
|
-
issue = @client.create_issue \
|
54
|
-
"api-playground/api-sandbox",
|
55
|
-
"New issue with delimited labels",
|
56
|
-
"Testing",
|
57
|
-
:labels => "bug, feature"
|
58
|
-
expect(issue.title).to match /delimited/
|
59
|
-
expect(issue.labels.map(&:name)).to include("feature")
|
60
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/issues")
|
61
|
-
end
|
62
|
-
it "creates an issue with labels array" do
|
63
|
-
issue = @client.create_issue \
|
64
|
-
"api-playground/api-sandbox",
|
65
|
-
"New issue with labels array",
|
66
|
-
"Testing",
|
67
|
-
:labels => %w(bug feature)
|
68
|
-
expect(issue.title).to match /array/
|
69
|
-
expect(issue.labels.map(&:name)).to include("feature")
|
70
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/issues")
|
71
|
-
end
|
72
|
-
end # .create_issue
|
73
|
-
|
74
|
-
context "methods requiring a new issue", :vcr do
|
75
|
-
|
76
|
-
before do
|
77
|
-
@issue = @client.create_issue("api-playground/api-sandbox", "Migrate issues to v3", "Move all Issues calls to v3 of the API")
|
78
|
-
end
|
79
|
-
|
80
|
-
describe ".issue" do
|
81
|
-
it "returns an issue" do
|
82
|
-
issue = @client.issue("api-playground/api-sandbox", @issue.number)
|
83
|
-
assert_requested :get, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}")
|
84
|
-
expect(issue.number).to eq @issue.number
|
85
|
-
end
|
86
|
-
it "returns a full issue" do
|
87
|
-
issue = @client.issue("api-playground/api-sandbox", @issue.number, :accept => 'application/vnd.github.full+json')
|
88
|
-
assert_requested :get, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}")
|
89
|
-
expect(issue.body_html).to include '<p>Move all'
|
90
|
-
expect(issue.body_text).to include 'Move all'
|
91
|
-
end
|
92
|
-
end # .issue
|
93
|
-
|
94
|
-
describe ".close_issue" do
|
95
|
-
it "closes an issue" do
|
96
|
-
issue = @client.close_issue("api-playground/api-sandbox", @issue.number)
|
97
|
-
expect(issue.number).to eq @issue.number
|
98
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}")
|
99
|
-
end
|
100
|
-
end # .close_issue
|
101
|
-
|
102
|
-
describe ".reopen_issue" do
|
103
|
-
it "reopens an issue" do
|
104
|
-
issue = @client.close_issue("api-playground/api-sandbox", @issue.number)
|
105
|
-
expect(issue.number).to eq @issue.number
|
106
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}")
|
107
|
-
end
|
108
|
-
end # .reopen_issue
|
109
|
-
|
110
|
-
describe ".update_issue" do
|
111
|
-
it "updates an issue" do
|
112
|
-
issue = @client.update_issue("api-playground/api-sandbox", @issue.number, "Use all the v3 api!", "")
|
113
|
-
expect(issue.number).to eq @issue.number
|
114
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}")
|
115
|
-
end
|
116
|
-
end # .update_issue
|
117
|
-
|
118
|
-
describe ".add_comment" do
|
119
|
-
it "adds a comment" do
|
120
|
-
comment = @client.add_comment("api-playground/api-sandbox", @issue.number, "A test comment")
|
121
|
-
expect(comment.user.login).to eq test_github_login
|
122
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}/comments")
|
123
|
-
end
|
124
|
-
end # .add_comment
|
125
|
-
|
126
|
-
context "methods requiring a new issue comment" do
|
127
|
-
|
128
|
-
before do
|
129
|
-
@issue_comment = @client.add_comment("api-playground/api-sandbox", @issue.number, "Another test comment")
|
130
|
-
end
|
131
|
-
|
132
|
-
describe ".update_comment" do
|
133
|
-
it "updates an existing comment" do
|
134
|
-
@client.update_comment("api-playground/api-sandbox", @issue_comment.id, "A test comment update")
|
135
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/issues/comments/#{@issue_comment.id}")
|
136
|
-
end
|
137
|
-
end # .update_comment
|
138
|
-
|
139
|
-
describe ".delete_comment" do
|
140
|
-
it "deletes an existing comment" do
|
141
|
-
@client.delete_comment("api-playground/api-sandbox", @issue_comment.id)
|
142
|
-
assert_requested :delete, github_url("/repos/api-playground/api-sandbox/issues/comments/#{@issue_comment.id}")
|
143
|
-
end # .delete_comment
|
144
|
-
end
|
145
|
-
|
146
|
-
end
|
147
|
-
|
148
|
-
end
|
149
|
-
|
150
|
-
describe ".repository_issues_comments", :vcr do
|
151
|
-
it "returns comments for all issues in a repository" do
|
152
|
-
comments = @client.issues_comments("octokit/octokit.rb")
|
153
|
-
expect(comments).to be_kind_of Array
|
154
|
-
assert_requested :get, github_url('/repos/octokit/octokit.rb/issues/comments')
|
155
|
-
end
|
156
|
-
end # .repository_issues_comments
|
157
|
-
|
158
|
-
describe ".issue_comments", :vcr do
|
159
|
-
it "returns comments for an issue" do
|
160
|
-
comments = @client.issue_comments("octokit/octokit.rb", 25)
|
161
|
-
expect(comments).to be_kind_of Array
|
162
|
-
assert_requested :get, github_url('/repos/octokit/octokit.rb/issues/25/comments')
|
163
|
-
end
|
164
|
-
end # .issue_comments
|
165
|
-
|
166
|
-
describe ".issue_comment", :vcr do
|
167
|
-
it "returns a single comment for an issue" do
|
168
|
-
comment = @client.issue_comment("octokit/octokit.rb", 1194690)
|
169
|
-
expect(comment.rels[:self].href).to eq "https://api.github.com/repos/octokit/octokit.rb/issues/comments/1194690"
|
170
|
-
assert_requested :get, github_url('/repos/octokit/octokit.rb/issues/comments/1194690')
|
171
|
-
end
|
172
|
-
end # .issue_comment
|
173
|
-
|
174
|
-
end
|
@@ -1,115 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Labels do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".labels", :vcr do
|
11
|
-
it "returns labels" do
|
12
|
-
labels = @client.labels("octokit/octokit.rb")
|
13
|
-
expect(labels).to be_kind_of Array
|
14
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/labels")
|
15
|
-
end
|
16
|
-
end # .labels
|
17
|
-
|
18
|
-
describe ".label", :vcr do
|
19
|
-
it "returns a single label" do
|
20
|
-
label = @client.label("octokit/octokit.rb", "V3 Addition")
|
21
|
-
expect(label.name).to eq "V3 Addition"
|
22
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/labels/V3+Addition")
|
23
|
-
end
|
24
|
-
end # .label
|
25
|
-
|
26
|
-
describe ".add_label", :vcr do
|
27
|
-
it "adds a label with a color" do
|
28
|
-
@client.delete_label!("api-playground/api-sandbox", 'test-label', {:color => 'ededed'})
|
29
|
-
label = @client.add_label("api-playground/api-sandbox", "test-label", 'ededed')
|
30
|
-
expect(label.color).to eq "ededed"
|
31
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/labels")
|
32
|
-
end
|
33
|
-
it "adds a label with default color" do
|
34
|
-
@client.delete_label!("api-playground/api-sandbox", 'test-label', {:color => 'ededed'})
|
35
|
-
label = @client.add_label("api-playground/api-sandbox", "test-label")
|
36
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/labels")
|
37
|
-
end
|
38
|
-
end # .add_label
|
39
|
-
|
40
|
-
context "methods requiring a new label", :vcr do
|
41
|
-
|
42
|
-
before do
|
43
|
-
@client.delete_label!("api-playground/api-sandbox", 'test-label', {:color => 'ededed'})
|
44
|
-
@label = @client.add_label("api-playground/api-sandbox", "test-label", 'ededed')
|
45
|
-
end
|
46
|
-
|
47
|
-
describe ".update_label", :vcr do
|
48
|
-
it "updates a label with a new color" do
|
49
|
-
@client.update_label("api-playground/api-sandbox", @label.name, {:color => 'ffdd33'})
|
50
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/labels/#{@label.name}")
|
51
|
-
end
|
52
|
-
end # .update_label
|
53
|
-
end
|
54
|
-
|
55
|
-
context "methods requiring a new issue", :vcr do
|
56
|
-
before do
|
57
|
-
@issue = @client.create_issue("api-playground/api-sandbox", "Issue for label test", "The body")
|
58
|
-
end
|
59
|
-
|
60
|
-
describe ".add_labels_to_an_issue", :vcr do
|
61
|
-
it "adds labels to a given issue" do
|
62
|
-
labels = @client.add_labels_to_an_issue('api-playground/api-sandbox', @issue.number, ['bug'])
|
63
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}" + "/labels")
|
64
|
-
end
|
65
|
-
end # .add_labels_to_an_issue
|
66
|
-
|
67
|
-
describe ".labels_for_issue", :vcr do
|
68
|
-
it "returns all labels for a given issue" do
|
69
|
-
labels = @client.labels_for_issue('api-playground/api-sandbox', @issue.number)
|
70
|
-
expect(labels).to be_kind_of Array
|
71
|
-
assert_requested :get, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}/labels")
|
72
|
-
end
|
73
|
-
end # .labels_for_issue
|
74
|
-
|
75
|
-
describe ".remove_label", :vcr do
|
76
|
-
it "removes a label from the specified issue" do
|
77
|
-
labels = @client.remove_label('api-playground/api-sandbox', @issue.number, 'bug')
|
78
|
-
assert_requested :delete, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}" + "/labels/bug")
|
79
|
-
end
|
80
|
-
end # .remove_label
|
81
|
-
|
82
|
-
describe ".remove_all_labels", :vcr do
|
83
|
-
it "removes all labels from the specified issue" do
|
84
|
-
labels = @client.remove_all_labels('api-playground/api-sandbox', @issue.number)
|
85
|
-
assert_requested :delete, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}" + "/labels")
|
86
|
-
end
|
87
|
-
end # .remove_all_labels
|
88
|
-
|
89
|
-
describe ".replace_all_labels", :vcr do
|
90
|
-
it "replaces all labels for an issue" do
|
91
|
-
labels = @client.replace_all_labels('api-playground/api-sandbox', @issue.number, ['bug', 'pdi'])
|
92
|
-
assert_requested :put, github_url("/repos/api-playground/api-sandbox/issues/#{@issue.number}" + "/labels")
|
93
|
-
end
|
94
|
-
end # .replace_all_labels
|
95
|
-
end
|
96
|
-
|
97
|
-
|
98
|
-
describe ".lables_for_milestone", :vcr do
|
99
|
-
it "returns all labels for a repository" do
|
100
|
-
labels = @client.labels_for_milestone('octokit/octokit.rb', 2)
|
101
|
-
expect(labels).to be_kind_of Array
|
102
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/milestones/2/labels")
|
103
|
-
end
|
104
|
-
end # .labels_for_milestone
|
105
|
-
|
106
|
-
|
107
|
-
describe ".delete_label!", :vcr do
|
108
|
-
it "deletes a label from the repository" do
|
109
|
-
label = @client.add_label("api-playground/api-sandbox", "delete-me-label")
|
110
|
-
@client.delete_label!("api-playground/api-sandbox", label.name, {:color => 'ededed'})
|
111
|
-
assert_requested :delete, github_url("/repos/api-playground/api-sandbox/labels/#{label.name}")
|
112
|
-
end
|
113
|
-
end # .delete_label!
|
114
|
-
|
115
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::LegacySearch do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".legacy_search_issues", :vcr do
|
11
|
-
it "returns matching issues" do
|
12
|
-
issues = @client.legacy_search_issues("sferik/rails_admin", "activerecord")
|
13
|
-
expect(issues).to_not be_empty
|
14
|
-
assert_requested :get, github_url("/legacy/issues/search/sferik/rails_admin/open/activerecord")
|
15
|
-
end
|
16
|
-
end # .legacy_search_issues
|
17
|
-
|
18
|
-
describe ".legacy_search_repos", :vcr do
|
19
|
-
it "returns matching repositories" do
|
20
|
-
repositories = @client.legacy_search_repositories("One40Proof")
|
21
|
-
expect(repositories).to_not be_empty
|
22
|
-
assert_requested :get, github_url("/legacy/repos/search/One40Proof")
|
23
|
-
end
|
24
|
-
end # .legacy_search_repos
|
25
|
-
|
26
|
-
describe ".legacy_search_users", :vcr do
|
27
|
-
it "returns matching username" do
|
28
|
-
users = @client.legacy_search_users("sferik")
|
29
|
-
expect(users.first.username).to eq("sferik")
|
30
|
-
assert_requested :get, github_url("/legacy/user/search/sferik")
|
31
|
-
end
|
32
|
-
it "should not raise URI::InvalidURIError and returns success" do
|
33
|
-
VCR.eject_cassette
|
34
|
-
VCR.turn_off!
|
35
|
-
stub_get("https://api.github.com/legacy/user/search/followers:>0")
|
36
|
-
expect { @client.legacy_search_users("followers:>0") }.to_not raise_error(URI::InvalidURIError)
|
37
|
-
assert_requested :get, github_url("/legacy/user/search/followers:%3E0")
|
38
|
-
VCR.turn_on!
|
39
|
-
end
|
40
|
-
end # .legacy_searcy_users
|
41
|
-
|
42
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Markdown do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".markdown", :vcr do
|
11
|
-
it "renders markdown" do
|
12
|
-
text = "This is for #111"
|
13
|
-
markdown = @client.markdown(text, :context => 'octokit/octokit.rb', :mode => 'gfm')
|
14
|
-
|
15
|
-
expect(markdown).to include 'https://github.com/octokit/octokit.rb/issues/111'
|
16
|
-
assert_requested :post, github_url('/markdown')
|
17
|
-
end
|
18
|
-
end # .markdown
|
19
|
-
|
20
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Meta do
|
4
|
-
|
5
|
-
describe ".github_meta", :vcr do
|
6
|
-
it "returns meta information about github" do
|
7
|
-
client = oauth_client
|
8
|
-
github_meta = client.github_meta
|
9
|
-
expect(github_meta.git).to include "207.97.227.239/32"
|
10
|
-
assert_requested :get, github_url("/meta")
|
11
|
-
end
|
12
|
-
end # .github_meta
|
13
|
-
|
14
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Milestones do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".list_milestones", :vcr do
|
11
|
-
it "lists milestones belonging to repository" do
|
12
|
-
milestones = @client.list_milestones("api-playground/api-sandbox")
|
13
|
-
expect(milestones).to be_kind_of Array
|
14
|
-
assert_requested :get, github_url("/repos/api-playground/api-sandbox/milestones")
|
15
|
-
end
|
16
|
-
end # .list_milestones
|
17
|
-
|
18
|
-
context "methods that need a milestone" do
|
19
|
-
|
20
|
-
before(:each) do
|
21
|
-
name = "Test Milestone #{Time.now.to_i}"
|
22
|
-
@milestone = @client.create_milestone("api-playground/api-sandbox", name)
|
23
|
-
end
|
24
|
-
|
25
|
-
after(:each) do
|
26
|
-
@client.delete_milestone("api-playground/api-sandbox", @milestone.number)
|
27
|
-
end
|
28
|
-
|
29
|
-
describe ".milestone", :vcr do
|
30
|
-
it "gets a single milestone belonging to repository" do
|
31
|
-
milestone = @client.milestone("api-playground/api-sandbox", @milestone.number)
|
32
|
-
assert_requested :get, github_url("/repos/api-playground/api-sandbox/milestones/#{@milestone.number}")
|
33
|
-
end
|
34
|
-
end # .milestone
|
35
|
-
|
36
|
-
describe ".create_milestone", :vcr do
|
37
|
-
it "creates a milestone" do
|
38
|
-
expect(@milestone.title).to_not be_nil
|
39
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/milestones")
|
40
|
-
end
|
41
|
-
end # .create_milestone
|
42
|
-
|
43
|
-
describe ".update_milestone", :vcr do
|
44
|
-
it "updates a milestone" do
|
45
|
-
@client.update_milestone("api-playground/api-sandbox", @milestone.number, {:description => "Add support for API v3"})
|
46
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/milestones/#{@milestone.number}")
|
47
|
-
end
|
48
|
-
end # .update_milestone
|
49
|
-
|
50
|
-
describe ".delete_milestone", :vcr do
|
51
|
-
it "deletes a milestone from a repository" do
|
52
|
-
@client.delete_milestone("api-playground/api-sandbox", @milestone.number)
|
53
|
-
assert_requested :delete, github_url("/repos/api-playground/api-sandbox/milestones/#{@milestone.number}")
|
54
|
-
end
|
55
|
-
end # .delete_milestone
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|