diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 21:06:12 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 21:06:12 +0200 |
commit | 9621f433a7ba7b1f4083c27aac1b41642f82f352 (patch) | |
tree | 6d79036d2366dc410504dbafc47deaf36407ea02 /spec/features | |
parent | a598bd91f9b5ec70d04d70f481c4f5b277f05904 (diff) | |
download | gitlab-ce-9621f433a7ba7b1f4083c27aac1b41642f82f352.tar.gz |
Fix: features/ci/projects_spec.rb
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/ci/projects_spec.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/spec/features/ci/projects_spec.rb b/spec/features/ci/projects_spec.rb index 8f6c238743f..ff17aeca447 100644 --- a/spec/features/ci/projects_spec.rb +++ b/spec/features/ci/projects_spec.rb @@ -1,33 +1,36 @@ require 'spec_helper' describe "Projects" do + let(:user) { create(:user) } + before do - login_as :user - @project = FactoryGirl.create :project, name: "GitLab / gitlab-shell" + login_as(user) + @project = FactoryGirl.create :ci_project, name: "GitLab / gitlab-shell" + @project.gl_project.team << [user, :master] end - describe "GET /projects", js: true do + describe "GET /ci/projects", js: true do before do stub_js_gitlab_calls - visit projects_path + visit ci_projects_path end it { expect(page).to have_content "GitLab / gitlab-shell" } it { expect(page).to have_selector ".search input#search" } end - describe "GET /projects/:id" do + describe "GET /ci/projects/:id" do before do - visit project_path(@project) + visit ci_project_path(@project) end it { expect(page).to have_content @project.name } it { expect(page).to have_content 'All commits' } end - describe "GET /projects/:id/edit" do + describe "GET /ci/projects/:id/edit" do before do - visit edit_project_path(@project) + visit edit_ci_project_path(@project) end it { expect(page).to have_content @project.name } @@ -43,9 +46,9 @@ describe "Projects" do end end - describe "GET /projects/:id/charts" do + describe "GET /ci/projects/:id/charts" do before do - visit project_charts_path(@project) + visit ci_project_charts_path(@project) end it { expect(page).to have_content 'Overall' } |