travis-ci
59 of 59 new or added lines in 12 files covered. (100.0%)
793 of 1481 relevant lines covered (53.54%)
109.07 hits per line
1 |
module David::ETSI::Mandatory |
5✔ |
2 |
class Sinatra < ::Sinatra::Base |
5✔ |
3 |
before { content_type 'text/plain' }
|
5✔ |
4 |
|
|
5 |
get '/test' do |
5✔ |
6 |
# Sinatra calls #to_i on status and resets headers on 205.
|
|
7 |
status 200
|
× |
8 |
nil
|
× |
9 |
end
|
|
10 |
|
|
11 |
post '/test' do |
5✔ |
12 |
status 201
|
× |
13 |
nil
|
× |
14 |
end
|
|
15 |
|
|
16 |
put '/test' do |
5✔ |
17 |
status 204
|
× |
18 |
nil
|
× |
19 |
end
|
|
20 |
|
|
21 |
delete '/test' do |
5✔ |
22 |
status 202
|
× |
23 |
nil
|
× |
24 |
end
|
|
25 |
|
|
26 |
get '/seg1/seg2/seg3' do |
5✔ |
27 |
status 200
|
× |
28 |
nil
|
× |
29 |
end
|
|
30 |
|
|
31 |
get '/query' do |
5✔ |
32 |
status 200
|
× |
33 |
nil
|
× |
34 |
end
|
|
35 |
end
|
|
36 |
end
|