test/angelo_spec.rb in angelo-0.1.18 vs test/angelo_spec.rb in angelo-0.1.19
- old
+ new
@@ -89,9 +89,15 @@
ActorPool.stop!
ActorPool.remove_action :do_wait
ActorPool.remove_action :do_get
end
+ it 'does not crash when receiving unknown http request type' do
+ r = HTTP.patch(url('/'))
+ assert @server.alive?
+ r.status.must_equal 404
+ end
+
end
describe 'before filter' do
define_app do