summaryrefslogtreecommitdiff
path: root/spec/features/ci/projects_spec.rb
blob: c633acf85fbf478c6d91047090d4e7154298f747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'spec_helper'

describe "Projects" do
  let(:user)    { create(:user) }

  before do
    login_as(user)
    @project = FactoryGirl.create :ci_project, name: "GitLab / gitlab-shell"
    @project.gl_project.team << [user, :master]
  end

  describe "GET /ci/projects/:id" do
    before do
      visit ci_project_path(@project)
    end

    it { expect(page).to have_content @project.name }
    it { expect(page).to have_content 'All commits' }
  end
end