Skip to content

Commit

Permalink
Add tests for faraday's DELETE support.
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Jun 3, 2013
1 parent 0d8cec6 commit 79b1d81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/adapter/faraday_spec.rb
Expand Up @@ -120,4 +120,16 @@
end

end

describe 'DELETE' do

it 'retrieves the response headers' do
conn.delete('echo').headers['content-type'].should =~ %r{text/plain}
end

it 'retrieves the body' do
conn.delete('echo').body.should == %(delete)
end

end
end

0 comments on commit 79b1d81

Please sign in to comment.