{"action":"created","comment":{"url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/comments/65013495","id":65013495,"diff_hunk":"@@ -1,28 +1,55 @@\n require_relative '../../../src/requests/account/account_get'\n require_relative '../../../src/data/account/account'\n+require_relative '../../../src/helpers/rest_client/api_rest_client'\n \n-Given(/^I have an account with id (\\d+)$/) do |id_account|\n+Given(/^I have set a connection to pivotal_tracker API service$/) do\n+  @client = ApiRestClient.new\n+end\n+\n+\n+Given(/^I have an (?:.*?) with id (\\d+)$/) do |id_account|\n   @id_account=id_account\n end\n \n-When(/^I send a (:?GET|UPDATE) request to (.*) with the id$/) do |method,end_point|\n+When(/^I send a (:?GET|UPDATE) request to (.*) endpoint/) do |method,end_point|\n   puts \"Performing a #{method} request\"\n-  @status_code, @account_object = AccountGet.validate_endpoint(@client, end_point, @id_account)\n+  id=  @id_account.nil? ? '':@id_account\n+  @status_code, @account_object = AccountGet.validate_endpoint(@client, end_point, id )\n end\n \n Then(/^I expect status code (\\d+)$/) do |http_code|\n   expect(@status_code.to_s).to eq(http_code.to_s)\n end\n \n Then(/^The response should be the next JSON:$/) do |json_expected|\n-  json_account=JSON.parse(@account_object.to_hash.to_json)\n-  expect(json_account).to eq(JSON.parse(json_expected))\n+  expect(@account_object).to eq(JSON.parse(json_expected))\n end\n \n-Given(/^I have the next membership:$/) do |membership|\n-  @membership=JSON.parse(membership)\n+Then(/^The accounts? should have the nex attributes?:$/) do |attribute_types|\n+  attribute_hash=Hash.new\n+  attribute_types.hashes.each_with_object({}) do |row|\n+    attribute_hash[row['attribute']]= row['type']\n+  end\n+\n+  validate_attribute_types(@account_object,attribute_hash)\n end\n+#when i implemented the next method on AccountGet class i get the next error:\n+#undefined method `expect' for AccountGet:Class (NoMethodError)\n+# how should implemen this method on AccountGet class?","path":"Framework7/features/step_definitions/accounts_steps/accounts_steps.rb","position":null,"original_position":45,"commit_id":"4f755af4b25bc57a772013e2e5f94bcd8e00877d","original_commit_id":"4f755af4b25bc57a772013e2e5f94bcd8e00877d","user":{"login":"wMercadoJ","id":11005468,"avatar_url":"https://avatars.githubusercontent.com/u/11005468?v=3","gravatar_id":"","url":"https://api.github.com/users/wMercadoJ","html_url":"https://github.com/wMercadoJ","followers_url":"https://api.github.com/users/wMercadoJ/followers","following_url":"https://api.github.com/users/wMercadoJ/following{/other_user}","gists_url":"https://api.github.com/users/wMercadoJ/gists{/gist_id}","starred_url":"https://api.github.com/users/wMercadoJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wMercadoJ/subscriptions","organizations_url":"https://api.github.com/users/wMercadoJ/orgs","repos_url":"https://api.github.com/users/wMercadoJ/repos","events_url":"https://api.github.com/users/wMercadoJ/events{/privacy}","received_events_url":"https://api.github.com/users/wMercadoJ/received_events","type":"User","site_admin":false},"body":"Did you installed gem rspec ? \r\nhttps://github.com/rspec/rspec-expectations","created_at":"2016-05-29T23:04:14Z","updated_at":"2016-05-29T23:04:14Z","html_url":"https://github.com/wMercadoJ/QA-DEV07/pull/16#discussion_r65013495","pull_request_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/comments/65013495"},"html":{"href":"https://github.com/wMercadoJ/QA-DEV07/pull/16#discussion_r65013495"},"pull_request":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16","id":71813266,"html_url":"https://github.com/wMercadoJ/QA-DEV07/pull/16","diff_url":"https://github.com/wMercadoJ/QA-DEV07/pull/16.diff","patch_url":"https://github.com/wMercadoJ/QA-DEV07/pull/16.patch","issue_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues/16","number":16,"state":"open","locked":false,"title":"This pull request involves corrections to the last observations and smoke verifications","user":{"login":"HenrrySalinasJala","id":17091514,"avatar_url":"https://avatars.githubusercontent.com/u/17091514?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrrySalinasJala","html_url":"https://github.com/HenrrySalinasJala","followers_url":"https://api.github.com/users/HenrrySalinasJala/followers","following_url":"https://api.github.com/users/HenrrySalinasJala/following{/other_user}","gists_url":"https://api.github.com/users/HenrrySalinasJala/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrrySalinasJala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrrySalinasJala/subscriptions","organizations_url":"https://api.github.com/users/HenrrySalinasJala/orgs","repos_url":"https://api.github.com/users/HenrrySalinasJala/repos","events_url":"https://api.github.com/users/HenrrySalinasJala/events{/privacy}","received_events_url":"https://api.github.com/users/HenrrySalinasJala/received_events","type":"User","site_admin":false},"body":"Please read the lines 36,37,38 from the accounts_get.rb file\r\nI have sme problems implementing that part","created_at":"2016-05-28T22:38:04Z","updated_at":"2016-05-29T23:04:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae3cfe2732d4b48b4ec82fe6bd7f8cc4d7ab4f13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16/commits","review_comments_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16/comments","review_comment_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues/16/comments","statuses_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/statuses/4f755af4b25bc57a772013e2e5f94bcd8e00877d","head":{"label":"HenrrySalinasJala:Henrry","ref":"Henrry","sha":"4f755af4b25bc57a772013e2e5f94bcd8e00877d","user":{"login":"HenrrySalinasJala","id":17091514,"avatar_url":"https://avatars.githubusercontent.com/u/17091514?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrrySalinasJala","html_url":"https://github.com/HenrrySalinasJala","followers_url":"https://api.github.com/users/HenrrySalinasJala/followers","following_url":"https://api.github.com/users/HenrrySalinasJala/following{/other_user}","gists_url":"https://api.github.com/users/HenrrySalinasJala/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrrySalinasJala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrrySalinasJala/subscriptions","organizations_url":"https://api.github.com/users/HenrrySalinasJala/orgs","repos_url":"https://api.github.com/users/HenrrySalinasJala/repos","events_url":"https://api.github.com/users/HenrrySalinasJala/events{/privacy}","received_events_url":"https://api.github.com/users/HenrrySalinasJala/received_events","type":"User","site_admin":false},"repo":{"id":59770018,"name":"QA-DEV07","full_name":"HenrrySalinasJala/QA-DEV07","owner":{"login":"HenrrySalinasJala","id":17091514,"avatar_url":"https://avatars.githubusercontent.com/u/17091514?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrrySalinasJala","html_url":"https://github.com/HenrrySalinasJala","followers_url":"https://api.github.com/users/HenrrySalinasJala/followers","following_url":"https://api.github.com/users/HenrrySalinasJala/following{/other_user}","gists_url":"https://api.github.com/users/HenrrySalinasJala/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrrySalinasJala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrrySalinasJala/subscriptions","organizations_url":"https://api.github.com/users/HenrrySalinasJala/orgs","repos_url":"https://api.github.com/users/HenrrySalinasJala/repos","events_url":"https://api.github.com/users/HenrrySalinasJala/events{/privacy}","received_events_url":"https://api.github.com/users/HenrrySalinasJala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HenrrySalinasJala/QA-DEV07","description":"","fork":true,"url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07","forks_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/forks","keys_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/teams","hooks_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/hooks","issue_events_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/issues/events{/number}","events_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/events","assignees_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/assignees{/user}","branches_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/branches{/branch}","tags_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/tags","blobs_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/git/refs{/sha}","trees_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/statuses/{sha}","languages_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/languages","stargazers_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/stargazers","contributors_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/contributors","subscribers_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/subscribers","subscription_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/subscription","commits_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/commits{/sha}","git_commits_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/git/commits{/sha}","comments_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/comments{/number}","issue_comment_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/issues/comments{/number}","contents_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/contents/{+path}","compare_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/merges","archive_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/downloads","issues_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/issues{/number}","pulls_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/pulls{/number}","milestones_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/milestones{/number}","notifications_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/labels{/name}","releases_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/releases{/id}","deployments_url":"https://api.github.com/repos/HenrrySalinasJala/QA-DEV07/deployments","created_at":"2016-05-26T17:31:53Z","updated_at":"2016-05-26T17:31:53Z","pushed_at":"2016-05-28T22:28:49Z","git_url":"git://github.com/HenrrySalinasJala/QA-DEV07.git","ssh_url":"git@github.com:HenrrySalinasJala/QA-DEV07.git","clone_url":"https://github.com/HenrrySalinasJala/QA-DEV07.git","svn_url":"https://github.com/HenrrySalinasJala/QA-DEV07","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wMercadoJ:master","ref":"master","sha":"d63dec073b108c82ed383783da185905fbcd14bf","user":{"login":"wMercadoJ","id":11005468,"avatar_url":"https://avatars.githubusercontent.com/u/11005468?v=3","gravatar_id":"","url":"https://api.github.com/users/wMercadoJ","html_url":"https://github.com/wMercadoJ","followers_url":"https://api.github.com/users/wMercadoJ/followers","following_url":"https://api.github.com/users/wMercadoJ/following{/other_user}","gists_url":"https://api.github.com/users/wMercadoJ/gists{/gist_id}","starred_url":"https://api.github.com/users/wMercadoJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wMercadoJ/subscriptions","organizations_url":"https://api.github.com/users/wMercadoJ/orgs","repos_url":"https://api.github.com/users/wMercadoJ/repos","events_url":"https://api.github.com/users/wMercadoJ/events{/privacy}","received_events_url":"https://api.github.com/users/wMercadoJ/received_events","type":"User","site_admin":false},"repo":{"id":59018354,"name":"QA-DEV07","full_name":"wMercadoJ/QA-DEV07","owner":{"login":"wMercadoJ","id":11005468,"avatar_url":"https://avatars.githubusercontent.com/u/11005468?v=3","gravatar_id":"","url":"https://api.github.com/users/wMercadoJ","html_url":"https://github.com/wMercadoJ","followers_url":"https://api.github.com/users/wMercadoJ/followers","following_url":"https://api.github.com/users/wMercadoJ/following{/other_user}","gists_url":"https://api.github.com/users/wMercadoJ/gists{/gist_id}","starred_url":"https://api.github.com/users/wMercadoJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wMercadoJ/subscriptions","organizations_url":"https://api.github.com/users/wMercadoJ/orgs","repos_url":"https://api.github.com/users/wMercadoJ/repos","events_url":"https://api.github.com/users/wMercadoJ/events{/privacy}","received_events_url":"https://api.github.com/users/wMercadoJ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wMercadoJ/QA-DEV07","description":"","fork":false,"url":"https://api.github.com/repos/wMercadoJ/QA-DEV07","forks_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/forks","keys_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/teams","hooks_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/hooks","issue_events_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues/events{/number}","events_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/events","assignees_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/assignees{/user}","branches_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/branches{/branch}","tags_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/tags","blobs_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/git/refs{/sha}","trees_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/statuses/{sha}","languages_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/languages","stargazers_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/stargazers","contributors_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/contributors","subscribers_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/subscribers","subscription_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/subscription","commits_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/commits{/sha}","git_commits_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/git/commits{/sha}","comments_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/comments{/number}","issue_comment_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues/comments{/number}","contents_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/contents/{+path}","compare_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/merges","archive_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/downloads","issues_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues{/number}","pulls_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls{/number}","milestones_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/milestones{/number}","notifications_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/labels{/name}","releases_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/releases{/id}","deployments_url":"https://api.github.com/repos/wMercadoJ/QA-DEV07/deployments","created_at":"2016-05-17T11:58:12Z","updated_at":"2016-05-22T19:01:13Z","pushed_at":"2016-05-28T22:38:04Z","git_url":"git://github.com/wMercadoJ/QA-DEV07.git","ssh_url":"git@github.com:wMercadoJ/QA-DEV07.git","clone_url":"https://github.com/wMercadoJ/QA-DEV07.git","svn_url":"https://github.com/wMercadoJ/QA-DEV07","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16"},"html":{"href":"https://github.com/wMercadoJ/QA-DEV07/pull/16"},"issue":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues/16"},"comments":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/wMercadoJ/QA-DEV07/statuses/4f755af4b25bc57a772013e2e5f94bcd8e00877d"}}}}
{"actor":{"display_login":"wMercadoJ"}}