test/unit/view_handler_tests.rb in deas-0.14.1 vs test/unit/view_handler_tests.rb in deas-0.15.0
- old
+ new
@@ -164,12 +164,12 @@
'headers' => { 'Content-Type' => 'text/plain' },
'body' => 'test halting'
})
runner.run
- assert_equal 200, runner.return_value[0]
- assert_equal({ 'Content-Type' => 'text/plain' }, runner.return_value[1])
- assert_equal 'test halting', runner.return_value[2]
+ assert_equal 200, runner.return_value.status
+ assert_equal({ 'Content-Type' => 'text/plain' }, runner.return_value.headers)
+ assert_equal 'test halting', runner.return_value.body
end
end
class ContentTypeTests < BaseTests