mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
60d50062d7
I can't stand this shit anymore.
17 lines
331 B
Ruby
17 lines
331 B
Ruby
require File.dirname(__FILE__) + '/helper'
|
|
|
|
# XXX: How does any of this have anything to do with REST?
|
|
context "RESTful tests" do
|
|
|
|
specify "should take xml" do
|
|
post '/foo.xml' do
|
|
request.body.string
|
|
end
|
|
|
|
post_it '/foo.xml', '<myxml></myxml>'
|
|
assert ok?
|
|
assert_equal('<myxml></myxml>', body)
|
|
end
|
|
|
|
end
|
|
|