From ade1a5dcc8299f4a50295e48057319e3e7d4fe41 Mon Sep 17 00:00:00 2001 From: Artem Vasiliev <artem.job@gmail.com> Date: Sun, 10 Dec 2017 23:44:47 +0300 Subject: [PATCH] refactor: rename GithubClient method to match the returned data --- app/api_clients/github_client.rb | 2 +- app/main.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api_clients/github_client.rb b/app/api_clients/github_client.rb index 4c77fa3..2b4c569 100644 --- a/app/api_clients/github_client.rb +++ b/app/api_clients/github_client.rb @@ -5,7 +5,7 @@ require 'json' # Some dummy remote URL getter just to show WebMock in action in specs class GithubClient - def full_name(repo_name) + def description(repo_name) uri = URI.parse('https://api.github.com/orgs/octokit/repos') response = Net::HTTP.get_response(uri) diff --git a/app/main.rb b/app/main.rb index cf63a97..19dd159 100644 --- a/app/main.rb +++ b/app/main.rb @@ -10,7 +10,7 @@ class Main end def run - GithubClient.new.full_name(arg) + GithubClient.new.description(arg) end end -- GitLab