projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for MD5 collisions and corrupt blocks. (refs #2292)
[arvados.git]
/
services
/
api
/
test
/
test_helper.rb
diff --git
a/services/api/test/test_helper.rb
b/services/api/test/test_helper.rb
index 9955a3500ffe9830c41974679954e6956c6f4f21..8e3399523ea800a43c8afaafae38bc10e0066dbf 100644
(file)
--- a/
services/api/test/test_helper.rb
+++ b/
services/api/test/test_helper.rb
@@
-19,3
+19,12
@@
class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
end
# 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