We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a8b250 commit e734820Copy full SHA for e734820
1 file changed
spec/integration/empty_body_spec.rb
@@ -7,14 +7,13 @@ def response(env)
7
end
8
9
describe 'Empty body API' do
10
+ let(:err) { Proc.new { fail "API request failed" } }
11
+
12
it 'serves a 201 with no body' do
13
with_api(Empty) do
- http = EM::HttpRequest.new('http://localhost:9000').get
- http.errback { fail }
14
- http.callback do |c|
+ get_request({}, err) do |c|
15
c.response_header.status.should == 201
16
c.response_header['CONTENT_LENGTH'].should == '0'
17
- stop
18
19
20
0 commit comments