diff --git a/test/controllers/graphql_controller_11_test.rb b/test/controllers/graphql_controller_11_test.rb index 2cad8e262..f1c86351d 100644 --- a/test/controllers/graphql_controller_11_test.rb +++ b/test/controllers/graphql_controller_11_test.rb @@ -132,10 +132,10 @@ def teardown post :create, params: { query: query } assert_response :success response = JSON.parse(@response.body)['data']['me'] - data = response['accessible_teams']['edges'].collect{ |edge| edge['node']['dbid'] }.sort + data = response['accessible_teams']['edges'] assert_equal 2, data.size - assert_equal team1.id, data[0] - assert_equal team2.id, data[1] + assert_equal team1.id, data[0]['node']['dbid'] + assert_equal team2.id, data[1]['node']['dbid'] assert_equal 2, response['accessible_teams_count'] end