require'spec_helper'describeAdmin::ProjectsControllerdolet!(:project){create(:project,visibility_level: Gitlab::VisibilityLevel::PUBLIC)}beforedosign_in(create(:admin))enddescribe'GET /projects'dorender_viewsit'retrieves the project for the given visibility level'doget:index,visibility_levels: [Gitlab::VisibilityLevel::PUBLIC]expect(response.body).tomatch(project.name)endit'does not retrieve the project'doget:index,visibility_levels: [Gitlab::VisibilityLevel::INTERNAL]expect(response.body).to_notmatch(project.name)endendend