You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/unit/github_hook/updater_test.rb
+20-21
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
-
require'test_helper'
1
+
require"test_helper"
2
2
3
-
require'test/unit'
4
-
require'mocha'
3
+
require"test/unit"
4
+
require"mocha"
5
5
6
6
classGithubHookUpdaterTest < Test::Unit::TestCase
7
-
8
7
defproject
9
8
return@projectif@project
10
9
@@ -23,7 +22,7 @@ def repository
23
22
24
23
defpayload
25
24
# Ruby hash with the parsed data from the JSON payload
26
-
{"before"=>"5aef35982fb2d34e9d9d4502f6ede1072793222d","repository"=>{"url"=>"http://github.com/defunkt/github","name"=>"github","description"=>"You're lookin' at it.","watchers"=>5,"forks"=>2,"private"=>1,"owner"=>{"email"=>"[email protected]","name"=>"defunkt"}},"commits"=>[{"id"=>"41a212ee83ca127e3c8cf465891ab7216a705f59","url"=>"http://github.com/defunkt/github/commit/41a212ee83ca127e3c8cf465891ab7216a705f59","author"=>{"email"=>"[email protected]","name"=>"Chris Wanstrath"},"message"=>"okay i give in","timestamp"=>"2008-02-15T14:57:17-08:00","added"=>["filepath.rb"]},{"id"=>"de8251ff97ee194a289832576287d6f8ad74e3d0","url"=>"http://github.com/defunkt/github/commit/de8251ff97ee194a289832576287d6f8ad74e3d0","author"=>{"email"=>"[email protected]","name"=>"Chris Wanstrath"},"message"=>"update pricing a tad","timestamp"=>"2008-02-15T14:36:34-08:00"}],"after"=>"de8251ff97ee194a289832576287d6f8ad74e3d0","ref"=>"refs/heads/master"}
25
+
{"before"=>"5aef35982fb2d34e9d9d4502f6ede1072793222d","repository"=>{"url"=>"http://github.com/defunkt/github","name"=>"github","description"=>"You're lookin' at it.","watchers"=>5,"forks"=>2,"private"=>1,"owner"=>{"email"=>"[email protected]","name"=>"defunkt"}},"commits"=>[{"id"=>"41a212ee83ca127e3c8cf465891ab7216a705f59","url"=>"http://github.com/defunkt/github/commit/41a212ee83ca127e3c8cf465891ab7216a705f59","author"=>{"email"=>"[email protected]","name"=>"Chris Wanstrath"},"message"=>"okay i give in","timestamp"=>"2008-02-15T14:57:17-08:00","added"=>["filepath.rb"]},{"id"=>"de8251ff97ee194a289832576287d6f8ad74e3d0","url"=>"http://github.com/defunkt/github/commit/de8251ff97ee194a289832576287d6f8ad74e3d0","author"=>{"email"=>"[email protected]","name"=>"Chris Wanstrath"},"message"=>"update pricing a tad","timestamp"=>"2008-02-15T14:36:34-08:00"}],"after"=>"de8251ff97ee194a289832576287d6f8ad74e3d0","ref"=>"refs/heads/master"}
0 commit comments