spec/application_spec.rb in rasti-web-2.0.1 vs spec/application_spec.rb in rasti-web-2.1.0

- old
+ new

@@ -6,11 +6,11 @@ end def call(env) if env['PATH_INFO'] == '/private' [403, {}, ['Permission denied']] - else + else @app.call env end end end @@ -48,19 +48,19 @@ app.all_routes.must_equal 'GET' => ['/'] end it 'Defined route' do get '/' - + last_response.status.must_equal 200 last_response['Content-Type'].must_equal 'text/html; charset=utf-8' last_response.body.must_equal 'Page content' end it 'Not found' do get '/not_found' - + last_response.status.must_equal 404 last_response.body.must_equal 'Page not found' end it 'Middleware' do @@ -75,7 +75,7 @@ last_response.status.must_equal 200 last_response['Content-Type'].must_equal 'application/json; charset=utf-8' last_response.body.must_equal '{"id":123}' end - + end \ No newline at end of file