##// END OF EJS Templates
NameError: uninitialized constant Redmine::ApiTest::GroupsTest::MultiJson...
Jean-Philippe Lang -
r14870:5d9b87de3a9d
parent child
Show More
@@ -67,7 +67,7 class Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base
67 assert_response :success
67 assert_response :success
68 assert_equal 'application/json', response.content_type
68 assert_equal 'application/json', response.content_type
69
69
70 json = MultiJson.load(response.body)
70 json = ActiveSupport::JSON.decode(response.body)
71 groups = json['groups']
71 groups = json['groups']
72 assert_kind_of Array, groups
72 assert_kind_of Array, groups
73 group = groups.detect {|g| g['name'] == 'A Team'}
73 group = groups.detect {|g| g['name'] == 'A Team'}
General Comments 0
You need to be logged in to leave comments. Login now