compat/app_test.rb in sinatra-sinatra-0.9.0.5 vs compat/app_test.rb in sinatra-sinatra-0.9.1
- old
+ new
@@ -144,28 +144,9 @@
should.be.ok
body.should.equal 'Hello!'
end
- # Deprecated. WTF was going on here? What's the 1 in [:foo, 1] do?
- xspecify "should set status then call helper with a var" do
- helpers do
- def foo
- 'bah!'
- end
- end
-
- get '/set_body' do
- stop [404, [:foo, 1]]
- end
-
- get_it '/set_body'
-
- should.be.not_found
- body.should.equal 'bah!'
-
- end
-
specify "should easily set response Content-Type" do
get '/foo.html' do
content_type 'text/html', :charset => 'utf-8'
"<h1>Hello, World</h1>"
end