Commit 9621f433 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix: features/ci/projects_spec.rb

parent a598bd91
require 'spec_helper' require 'spec_helper'
describe "Projects" do describe "Projects" do
let(:user) { create(:user) }
before do before do
login_as :user login_as(user)
@project = FactoryGirl.create :project, name: "GitLab / gitlab-shell" @project = FactoryGirl.create :ci_project, name: "GitLab / gitlab-shell"
@project.gl_project.team << [user, :master]
end end
describe "GET /projects", js: true do describe "GET /ci/projects", js: true do
before do before do
stub_js_gitlab_calls stub_js_gitlab_calls
visit projects_path visit ci_projects_path
end end
it { expect(page).to have_content "GitLab / gitlab-shell" } it { expect(page).to have_content "GitLab / gitlab-shell" }
it { expect(page).to have_selector ".search input#search" } it { expect(page).to have_selector ".search input#search" }
end end
describe "GET /projects/:id" do describe "GET /ci/projects/:id" do
before do before do
visit project_path(@project) visit ci_project_path(@project)
end end
it { expect(page).to have_content @project.name } it { expect(page).to have_content @project.name }
it { expect(page).to have_content 'All commits' } it { expect(page).to have_content 'All commits' }
end end
describe "GET /projects/:id/edit" do describe "GET /ci/projects/:id/edit" do
before do before do
visit edit_project_path(@project) visit edit_ci_project_path(@project)
end end
it { expect(page).to have_content @project.name } it { expect(page).to have_content @project.name }
...@@ -43,9 +46,9 @@ describe "Projects" do ...@@ -43,9 +46,9 @@ describe "Projects" do
end end
end end
describe "GET /projects/:id/charts" do describe "GET /ci/projects/:id/charts" do
before do before do
visit project_charts_path(@project) visit ci_project_charts_path(@project)
end end
it { expect(page).to have_content 'Overall' } it { expect(page).to have_content 'Overall' }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment