@@ -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 = |
|
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