Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
9621f433
Commit
9621f433
authored
Sep 15, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: features/ci/projects_spec.rb
parent
a598bd91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
spec/features/ci/projects_spec.rb
spec/features/ci/projects_spec.rb
+13
-10
No files found.
spec/features/ci/projects_spec.rb
View file @
9621f433
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'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment