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
Boxiang Sun
gitlab-ce
Commits
628ff2cf
Commit
628ff2cf
authored
Jul 25, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use anonymous class in base_command_spec
parent
f6ae53bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
spec/lib/gitlab/kubernetes/helm/base_command_spec.rb
spec/lib/gitlab/kubernetes/helm/base_command_spec.rb
+18
-12
No files found.
spec/lib/gitlab/kubernetes/helm/base_command_spec.rb
View file @
628ff2cf
require
'spec_helper'
require
'spec_helper'
class
TestClass
describe
Gitlab
::
Kubernetes
::
Helm
::
BaseCommand
do
let
(
:application
)
{
create
(
:clusters_applications_helm
)
}
let
(
:test_class
)
do
Class
.
new
do
include
Gitlab
::
Kubernetes
::
Helm
::
BaseCommand
include
Gitlab
::
Kubernetes
::
Helm
::
BaseCommand
def
name
def
name
"test-class-name"
"test-class-name"
end
end
...
@@ -11,11 +15,13 @@ class TestClass
...
@@ -11,11 +15,13 @@ class TestClass
some:
'value'
some:
'value'
}
}
end
end
end
end
end
let
(
:base_command
)
do
test_class
.
new
end
describe
Gitlab
::
Kubernetes
::
Helm
::
BaseCommand
do
let
(
:application
)
{
create
(
:clusters_applications_helm
)
}
let
(
:base_command
)
{
TestClass
.
new
}
subject
{
base_command
}
subject
{
base_command
}
it_behaves_like
'helm commands'
do
it_behaves_like
'helm commands'
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