1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

adds method to parse json reponse

This commit is contained in:
Nicolas Florentin 2016-04-05 09:51:12 +02:00
parent fafec2153c
commit 4a1c67c8d5

View File

@ -12,6 +12,10 @@ class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
fixtures :all
def json_response(body)
JSON.parse(body, symbolize_names: true)
end
end
class ActionDispatch::IntegrationTest