blob: 7d92a1971f844fe618133a18562b092a4eb85dd9 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
|
require 'spec_helper'
describe "Projects" do
before do
login_as :user
@project = FactoryGirl.create :project
end
describe "GET /projects", js: true do
before do
stub_js_gitlab_calls
visit projects_path
end
it { page.should have_content @project.name }
end
describe "GET /projects/:id" do
before do
visit project_path(@project)
end
it { page.should have_content @project.name }
it { page.should have_content 'All commits' }
end
describe "GET /projects/:id/edit" do
before do
visit edit_project_path(@project)
end
it { page.should have_content @project.name }
it { page.should have_content 'Build Schedule' }
end
describe "GET /projects/:id/charts" do
before do
visit project_charts_path(@project)
end
it { page.should have_content 'Overall' }
it { page.should have_content 'Builds chart for last week' }
it { page.should have_content 'Builds chart for last month' }
it { page.should have_content 'Builds chart for last year' }
it { page.should have_content 'Commit duration in minutes for last 30 commits' }
end
end
|