@@ -343,6 +343,7 @@ def text_html(response, status, head = {})
343343}
344344
345345FULL_PULL = PULL . merge ( {
346+ "merge_commit_sha" => "e5bd3914e2e596debea16f433f57875b5b90bcd6" ,
346347"merged" => false ,
347348"mergeable" => true ,
348349"merged_by" => USER ,
@@ -691,14 +692,10 @@ def text_html(response, status, head = {})
691692]
692693}
693694
694- GIST_FILES = {
695- "files" => {
696- "ring.erl" => {
697- "size" => 932 ,
698- "filename" => "ring.erl" ,
699- "raw_url" => "https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl"
700- }
701- }
695+ GIST_FILE = {
696+ "size" => 932 ,
697+ "filename" => "ring.erl" ,
698+ "raw_url" => "https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl"
702699}
703700
704701GIST = {
@@ -707,16 +704,16 @@ def text_html(response, status, head = {})
707704"description" => "description of gist" ,
708705"public" => true ,
709706"user" => USER ,
710- "files" => GIST_FILES ,
707+ "files" => { "ring.erl" => GIST_FILE } ,
711708"comments" => 0 ,
712709"html_url" => "https://gist.github.com/1" ,
713710"git_pull_url" => "git://gist.github.com/1.git" ,
714711"git_push_url" => "git@gist.github.com:1.git" ,
715712"created_at" => "2010-04-14T02:15:15Z"
716- } . update ( GIST_FILES )
713+ }
717714
718715FULL_GIST = GIST . merge ( GIST_FORKS ) . merge ( GIST_HISTORY )
719- FULL_GIST [ 'files' ] [ 'ring.erl' ] [ 'content' ] = 'contents of gist'
716+ FULL_GIST [ 'files' ] . merge ( 'ring.erl' => GIST_FILE . merge ( 'content' => 'contents of gist' ) )
720717
721718GIST_COMMENT = {
722719"id" => 1 ,
@@ -891,7 +888,7 @@ def text_html(response, status, head = {})
891888"updated_at" => "2011-09-06T20:39:23Z" ,
892889"created_at" => "2011-09-06T17:26:27Z" ,
893890"name" => "web" ,
894- "events" => [ "push" ] ,
891+ "events" => [ "push" , "pull_request" ] ,
895892"active" => true ,
896893"config" =>
897894{ 'url' => 'http://example.com' , 'content_type' => 'json' } ,