test/angelo_spec.rb in angelo-0.3.3 vs test/angelo_spec.rb in angelo-0.4.0

- old
+ new

@@ -440,9 +440,27 @@ last_response_must_be_html end end + describe 'test Angelo::Base subclasses' do + + class MyWebApp < Angelo::Base + get '/up_and_running' do + content_type :html + 'ok' + end + end + + define_app MyWebApp + + it 'answers to up_and_running' do + get '/up_and_running' + assert_equal(last_response.body, 'ok') + end + + end + describe 'dsl configs' do describe 'addr' do define_app do