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:
parent
fafec2153c
commit
4a1c67c8d5
@ -12,6 +12,10 @@ class ActiveSupport::TestCase
|
|||||||
# Add more helper methods to be used by all tests here...
|
# Add more helper methods to be used by all tests here...
|
||||||
|
|
||||||
fixtures :all
|
fixtures :all
|
||||||
|
|
||||||
|
def json_response(body)
|
||||||
|
JSON.parse(body, symbolize_names: true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ActionDispatch::IntegrationTest
|
class ActionDispatch::IntegrationTest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user