test/system/rack_tests.rb in deas-0.7.0 vs test/system/rack_tests.rb in deas-0.8.0

- old
+ new

@@ -92,6 +92,26 @@ assert_equal 'session_secret', last_response.body end end + class HandlerTests < RackTests + desc "handler" + setup do + get 'handler/tests.json?a-param=something' + + require 'multi_json' + @data = MultiJson.decode(last_response.body || "") + end + + should "be able to access sinatra call data" do + assert_equal 'something', @data['app_settings_a_setting'] + assert_equal 'Logger', @data['logger_class_name'] + assert_equal 'GET', @data['request_method'] + assert_equal 'Content-Type', @data['response_firstheaderval'] + assert_equal 'something', @data['params_a_param'] + assert_equal '{}', @data['session_inspect'] + end + + end + end