gitlab-org--gitlab-foss/spec/features/ci/projects_spec.rb

21 lines
460 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
require 'spec_helper'
describe "Projects" do
2015-09-15 15:06:12 -04:00
let(:user) { create(:user) }
2015-08-25 21:42:46 -04:00
before do
2015-09-15 15:06:12 -04:00
login_as(user)
@project = FactoryGirl.create :ci_project, name: "GitLab / gitlab-shell"
@project.gl_project.team << [user, :master]
2015-08-25 21:42:46 -04:00
end
2015-09-15 15:06:12 -04:00
describe "GET /ci/projects/:id" do
2015-08-25 21:42:46 -04:00
before do
2015-09-15 15:06:12 -04:00
visit ci_project_path(@project)
2015-08-25 21:42:46 -04:00
end
2015-09-10 10:55:09 -04:00
it { expect(page).to have_content @project.name }
it { expect(page).to have_content 'All commits' }
2015-08-25 21:42:46 -04:00
end
end