gitlab-org--gitlab-foss/spec/features/admin/admin_projects_spec.rb

35 lines
718 B
Ruby
Raw Normal View History

2011-10-08 21:36:38 +00:00
require 'spec_helper'
describe "Admin::Projects", feature: true do
before do
2012-11-23 19:31:09 +00:00
@project = create(:project)
2011-10-08 21:36:38 +00:00
login_as :admin
end
describe "GET /admin/projects" do
before do
visit admin_namespaces_projects_path
2011-10-08 21:36:38 +00:00
end
it "is ok" do
expect(current_path).to eq(admin_namespaces_projects_path)
2011-10-08 21:36:38 +00:00
end
it "has projects list" do
expect(page).to have_content(@project.name)
2011-10-08 21:36:38 +00:00
end
end
describe "GET /admin/projects/:id" do
before do
visit admin_namespaces_projects_path
2011-11-22 07:55:01 +00:00
click_link "#{@project.name}"
2011-10-08 21:36:38 +00:00
end
it "has project info" do
expect(page).to have_content(@project.path)
expect(page).to have_content(@project.name)
2011-10-08 21:36:38 +00:00
end
end
end