Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit d22e94d

Browse files
committed
Update actor and org members of Event fixture to reflect api response
1 parent bd4067a commit d22e94d

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

lib/resources.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,8 +1385,20 @@ def text_html(response, status, head = {})
13851385
:name => "octocat/Hello-World",
13861386
:url => "https://api.github.com/repos/octocat/Hello-World"
13871387
},
1388-
:actor => USER,
1389-
:org => USER,
1388+
:actor => {
1389+
:id => 1,
1390+
:login => "octocat",
1391+
:gravatar_id => "somehexcode",
1392+
:avatar_url => "https://github.com/images/error/octocat_happy.gif",
1393+
:url => "https://api.github.com/users/octocat"
1394+
},
1395+
:org => {
1396+
:id => 1,
1397+
:login => "github",
1398+
:gravatar_id => "somehexcode",
1399+
:url => "https://api.github.com/orgs/github",
1400+
:avatar_url => "https://github.com/images/error/octocat_happy.gif"
1401+
},
13901402
:created_at => "2011-09-06T17:26:27Z",
13911403
:id => "12345"
13921404
}

0 commit comments

Comments
 (0)