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
1120b348
Commit
1120b348
authored
Oct 05, 2020
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve web_ide_terminal_controller spec
parent
23bdc738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
spec/controllers/projects/web_ide_terminals_controller_spec.rb
...controllers/projects/web_ide_terminals_controller_spec.rb
+13
-10
No files found.
spec/controllers/projects/web_ide_terminals_controller_spec.rb
View file @
1120b348
...
@@ -9,17 +9,20 @@ RSpec.describe Projects::WebIdeTerminalsController do
...
@@ -9,17 +9,20 @@ RSpec.describe Projects::WebIdeTerminalsController do
let_it_be
(
:developer
)
{
create
(
:user
)
}
let_it_be
(
:developer
)
{
create
(
:user
)
}
let_it_be
(
:reporter
)
{
create
(
:user
)
}
let_it_be
(
:reporter
)
{
create
(
:user
)
}
let_it_be
(
:guest
)
{
create
(
:user
)
}
let_it_be
(
:guest
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:private
,
:repository
,
namespace:
owner
.
namespace
)
}
let_it_be
(
:project
)
do
create
(
:project
,
:private
,
:repository
,
namespace:
owner
.
namespace
).
tap
do
|
project
|
project
.
add_maintainer
(
maintainer
)
project
.
add_developer
(
developer
)
project
.
add_reporter
(
reporter
)
project
.
add_guest
(
guest
)
end
end
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
source: :webide
,
config_source: :webide_source
,
user:
user
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
source: :webide
,
config_source: :webide_source
,
user:
user
)
}
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
user:
user
,
project:
project
)
}
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
user:
user
,
project:
project
)
}
let
(
:user
)
{
maintainer
}
let
(
:user
)
{
maintainer
}
before
do
before
do
project
.
add_maintainer
(
maintainer
)
project
.
add_developer
(
developer
)
project
.
add_reporter
(
reporter
)
project
.
add_guest
(
guest
)
sign_in
(
user
)
sign_in
(
user
)
end
end
...
@@ -158,11 +161,11 @@ RSpec.describe Projects::WebIdeTerminalsController do
...
@@ -158,11 +161,11 @@ RSpec.describe Projects::WebIdeTerminalsController do
end
end
context
'access rights'
do
context
'access rights'
do
before
do
it_behaves_like
'terminal access rights'
do
subject
before
do
subject
end
end
end
it_behaves_like
'terminal access rights'
end
end
it
'increases the web ide terminal counter'
do
it
'increases the web ide terminal counter'
do
...
...
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