require File.dirname(__FILE__) + '/helper' context "RESTful tests" do specify "should take xml" do post '/foo.xml' do request.body.string end post_it '/foo.xml', '' assert ok? assert_equal('', body) end end