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
7b33aff4
Commit
7b33aff4
authored
Dec 12, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test to use bang method for making sure its updated
parent
19bc4afb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/ee/spec/models/ee/project_spec.rb
spec/ee/spec/models/ee/project_spec.rb
+8
-8
No files found.
spec/ee/spec/models/ee/project_spec.rb
View file @
7b33aff4
...
...
@@ -759,7 +759,7 @@ describe Project do
context
'when environment scope is exactly matched'
do
before
do
cluster
.
update
(
environment_scope:
'review/name'
)
cluster
.
update
!
(
environment_scope:
'review/name'
)
end
it_behaves_like
'matching environment scope'
...
...
@@ -767,7 +767,7 @@ describe Project do
context
'when environment scope is matched by wildcard'
do
before
do
cluster
.
update
(
environment_scope:
'review/*'
)
cluster
.
update
!
(
environment_scope:
'review/*'
)
end
it_behaves_like
'matching environment scope'
...
...
@@ -775,7 +775,7 @@ describe Project do
context
'when environment scope does not match'
do
before
do
cluster
.
update
(
environment_scope:
'review/*/special'
)
cluster
.
update
!
(
environment_scope:
'review/*/special'
)
end
it_behaves_like
'not matching environment scope'
...
...
@@ -789,14 +789,14 @@ describe Project do
end
it
'does not treat it as wildcard'
do
cluster
.
update
(
environment_scope:
'foo_bar/*'
)
cluster
.
update
!
(
environment_scope:
'foo_bar/*'
)
is_expected
.
to
eq
(
default_cluster
.
platform_kubernetes
)
end
it
'matches literally for _'
do
cluster
.
update
(
environment_scope:
'foo_bar/*'
)
environment
.
update
(
name:
'foo_bar/test'
)
cluster
.
update
!
(
environment_scope:
'foo_bar/*'
)
environment
.
update
!
(
name:
'foo_bar/test'
)
is_expected
.
to
eq
(
cluster
.
platform_kubernetes
)
end
...
...
@@ -819,8 +819,8 @@ describe Project do
is_expected
.
to
eq
(
default_cluster
.
platform_kubernetes
)
end
it
'matches literally for
_
'
do
cluster
.
update
(
environment_scope:
'foo%bar/*'
)
it
'matches literally for
%
'
do
cluster
.
update
_attribute
(
:environment_scope
,
'foo%bar/*'
)
environment
.
update_attribute
(
:name
,
'foo%bar/test'
)
is_expected
.
to
eq
(
cluster
.
platform_kubernetes
)
...
...
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