+ [:admin, :active, :inactive, :anonymous, nil].each do |u|
+ test "accessible to #{u.inspect} user" do
+ authorize_with(u) if u
+ get :accessible
+ assert_response :success
+ assert_not_empty json_response['items']
+ json_response['items'].each do |ks|
+ assert_not_equal ks['service_type'], 'proxy'
+ end
+ end
+ end
+