Welcome to mirror list, hosted at ThFree Co, Russian Federation.

admin_projects_spec.rb « admin « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 101d955d693c74d1ee29497fa0df828b03c37560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'spec_helper'

describe "Admin::Projects", feature: true  do
  before do
    @project = create(:project)
    login_as :admin
  end

  describe "GET /admin/projects" do
    before do
      visit admin_namespaces_projects_path
    end

    it "should be ok" do
      expect(current_path).to eq(admin_namespaces_projects_path)
    end

    it "should have projects list" do
      expect(page).to have_content(@project.name)
    end
  end

  describe "GET /admin/projects/:id" do
    before do
      visit admin_namespaces_projects_path
      click_link "#{@project.name}"
    end

    it "should have project info" do
      expect(page).to have_content(@project.path)
      expect(page).to have_content(@project.name)
    end
  end
end