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
4bc1e040
Commit
4bc1e040
authored
Sep 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test for non existing functionality
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
368a40fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
50 deletions
+0
-50
spec/controllers/ci/projects_controller_spec.rb
spec/controllers/ci/projects_controller_spec.rb
+0
-50
No files found.
spec/controllers/ci/projects_controller_spec.rb
deleted
100644 → 0
View file @
368a40fc
require
"spec_helper"
describe
Ci
::
ProjectsController
do
before
do
@project
=
FactoryGirl
.
create
:ci_project
end
describe
"POST /projects"
do
let
(
:project_dump
)
{
OpenStruct
.
new
({
id:
@project
.
gitlab_id
})
}
let
(
:user
)
do
create
(
:user
)
end
before
do
sign_in
(
user
)
end
it
"creates project"
do
post
:create
,
{
project:
JSON
.
dump
(
project_dump
.
to_h
)
}.
with_indifferent_access
expect
(
response
.
code
).
to
eq
(
'302'
)
expect
(
assigns
(
:project
)).
not_to
be_a_new
(
Ci
::
Project
)
end
it
"shows error"
do
post
:create
,
{
project:
JSON
.
dump
(
project_dump
.
to_h
)
}.
with_indifferent_access
expect
(
response
.
code
).
to
eq
(
'302'
)
expect
(
flash
[
:alert
]).
to
include
(
"You have to have at least master role to enable CI for this project"
)
end
end
describe
"GET /gitlab"
do
let
(
:user
)
do
create
(
:user
)
end
before
do
sign_in
(
user
)
end
it
"searches projects"
do
xhr
:get
,
:index
,
{
search:
"str"
,
format:
"json"
}.
with_indifferent_access
expect
(
response
).
to
be_success
expect
(
response
.
code
).
to
eq
(
'200'
)
end
end
end
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