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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
68684a3a
Commit
68684a3a
authored
Sep 28, 2019
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove un-necessary variables
The user variable is already set in the outer context.
parent
1baeaf77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
spec/controllers/projects/pipeline_schedules_controller_spec.rb
...ontrollers/projects/pipeline_schedules_controller_spec.rb
+0
-8
spec/controllers/projects/wikis_controller_spec.rb
spec/controllers/projects/wikis_controller_spec.rb
+1
-1
No files found.
spec/controllers/projects/pipeline_schedules_controller_spec.rb
View file @
68684a3a
...
@@ -60,8 +60,6 @@ describe Projects::PipelineSchedulesController do
...
@@ -60,8 +60,6 @@ describe Projects::PipelineSchedulesController do
end
end
describe
'GET #new'
do
describe
'GET #new'
do
let_it_be
(
:user
)
{
create
(
:user
)
}
before
do
before
do
project
.
add_developer
(
user
)
project
.
add_developer
(
user
)
sign_in
(
user
)
sign_in
(
user
)
...
@@ -77,8 +75,6 @@ describe Projects::PipelineSchedulesController do
...
@@ -77,8 +75,6 @@ describe Projects::PipelineSchedulesController do
describe
'POST #create'
do
describe
'POST #create'
do
describe
'functionality'
do
describe
'functionality'
do
let_it_be
(
:user
)
{
create
(
:user
)
}
before
do
before
do
project
.
add_developer
(
user
)
project
.
add_developer
(
user
)
sign_in
(
user
)
sign_in
(
user
)
...
@@ -149,7 +145,6 @@ describe Projects::PipelineSchedulesController do
...
@@ -149,7 +145,6 @@ describe Projects::PipelineSchedulesController do
describe
'PUT #update'
do
describe
'PUT #update'
do
describe
'functionality'
do
describe
'functionality'
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
project:
project
,
owner:
user
)
}
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
project:
project
,
owner:
user
)
}
before
do
before
do
...
@@ -383,7 +378,6 @@ describe Projects::PipelineSchedulesController do
...
@@ -383,7 +378,6 @@ describe Projects::PipelineSchedulesController do
end
end
describe
'POST #play'
,
:clean_gitlab_redis_cache
do
describe
'POST #play'
,
:clean_gitlab_redis_cache
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:ref
)
{
'master'
}
let
(
:ref
)
{
'master'
}
before
do
before
do
...
@@ -442,8 +436,6 @@ describe Projects::PipelineSchedulesController do
...
@@ -442,8 +436,6 @@ describe Projects::PipelineSchedulesController do
end
end
describe
'DELETE #destroy'
do
describe
'DELETE #destroy'
do
let_it_be
(
:user
)
{
create
(
:user
)
}
context
'when a developer makes the request'
do
context
'when a developer makes the request'
do
before
do
before
do
project
.
add_developer
(
user
)
project
.
add_developer
(
user
)
...
...
spec/controllers/projects/wikis_controller_spec.rb
View file @
68684a3a
...
@@ -4,7 +4,7 @@ require 'spec_helper'
...
@@ -4,7 +4,7 @@ require 'spec_helper'
describe
Projects
::
WikisController
do
describe
Projects
::
WikisController
do
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
_it_be
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
owner
}
let
(
:project_wiki
)
{
ProjectWiki
.
new
(
project
,
user
)
}
let
(
:project_wiki
)
{
ProjectWiki
.
new
(
project
,
user
)
}
let
(
:wiki
)
{
project_wiki
.
wiki
}
let
(
:wiki
)
{
project_wiki
.
wiki
}
let
(
:wiki_title
)
{
'page title test'
}
let
(
:wiki_title
)
{
'page title test'
}
...
...
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