File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,28 +9,28 @@ def setup
9
9
def test_push
10
10
@tokens . to_s . split ( "," ) . each do |t |
11
11
@stubs . post "/v1/github/#{ t } " do |env |
12
- assert_match /json/ , env [ :request_headers ] [ 'content-type' ]
13
- assert_equal push_payload , JSON . parse ( env [ :body ] )
14
- [ 200 , { } , '' ]
12
+ assert_match /json/ , env [ :request_headers ] [ 'content-type' ]
13
+ assert_equal push_payload , JSON . parse ( env [ :body ] )
14
+ [ 200 , { } , '' ]
15
15
end
16
16
end
17
17
18
18
svc = service (
19
19
{ 'token' => @tokens } , push_payload )
20
- svc . receive_event
20
+ svc . receive_event
21
21
end
22
22
23
23
def test_token_sanitization
24
24
@tokens . to_s . split ( "," ) . each do |t |
25
25
@stubs . post "/v1/github/#{ t } " do |env |
26
- assert_equal payload , JSON . parse ( env [ :body ] )
27
- [ 200 , { } , '' ]
26
+ assert_equal payload , JSON . parse ( env [ :body ] )
27
+ [ 200 , { } , '' ]
28
28
end
29
29
end
30
30
31
31
svc = service (
32
32
{ 'token' => " " + @tokens + " " } , payload )
33
- svc . receive_event
33
+ svc . receive_event
34
34
end
35
35
36
36
def service ( *args )
You can’t perform that action at this time.
0 commit comments