Added more tests and more aggressive input checking.
[arvados.git] / services / api / test / test_helper.rb
index 8c12ffb5df4718df4c5d19dbd5eae5d109da764a..8e3399523ea800a43c8afaafae38bc10e0066dbf 100644 (file)
@@ -20,5 +20,11 @@ class ActiveSupport::TestCase
   # Add more helper methods to be used by all tests here...
 end
 
+class ActionDispatch::IntegrationTest
+  def jresponse
+    @jresponse ||= ActiveSupport::JSON.decode @response.body
+  end
+end
+
 # Ensure permissions are computed from the test fixtures.
 User.invalidate_permissions_cache