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
Léo-Paul Géneau
gitlab-ce
Commits
944149ec
Commit
944149ec
authored
Oct 31, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec for spec/presenters
parent
c43a82cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
spec/presenters/clusters/cluster_presenter_spec.rb
spec/presenters/clusters/cluster_presenter_spec.rb
+5
-6
No files found.
spec/presenters/
gcp
/cluster_presenter_spec.rb
→
spec/presenters/
clusters
/cluster_presenter_spec.rb
View file @
944149ec
require
'spec_helper'
describe
Gcp
::
ClusterPresenter
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:cluster
)
{
create
(
:gcp_cluster
,
project:
project
)
}
describe
Clusters
::
ClusterPresenter
do
let
(
:cluster
)
{
create
(
:cluster
,
:provided_by_gcp
)
}
subject
(
:presenter
)
do
described_class
.
new
(
cluster
)
...
...
@@ -22,14 +21,14 @@ describe Gcp::ClusterPresenter do
end
it
'forwards missing methods to cluster'
do
expect
(
presenter
.
gcp_cluster_zone
).
to
eq
(
cluster
.
gcp_cluster_zone
)
expect
(
presenter
.
status
).
to
eq
(
cluster
.
status
)
end
end
describe
'#gke_cluster_url'
do
subject
{
described_class
.
new
(
cluster
).
gke_cluster_url
}
it
{
is_expected
.
to
include
(
cluster
.
gcp_cluster_
zone
)
}
it
{
is_expected
.
to
include
(
cluster
.
gcp_cluster_
name
)
}
it
{
is_expected
.
to
include
(
cluster
.
provider
.
zone
)
}
it
{
is_expected
.
to
include
(
cluster
.
name
)
}
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