BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8a1a73a7
Commit
8a1a73a7
authored
Jun 01, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we're loading the fresh variables
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11688#note_31186872
parent
65563c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
variables_spec.rb
spec/features/variables_spec.rb
+4
-4
No files found.
spec/features/variables_spec.rb
View file @
8a1a73a7
...
...
@@ -99,7 +99,7 @@ describe 'Project variables', js: true do
click_button
(
'Save variable'
)
expect
(
page
).
to
have_content
(
'Variable was successfully updated.'
)
expect
(
project
.
variables
.
first
.
value
).
to
eq
(
'key value'
)
expect
(
project
.
variables
(
true
)
.
first
.
value
).
to
eq
(
'key value'
)
end
it
'edits variable with empty value'
do
...
...
@@ -112,7 +112,7 @@ describe 'Project variables', js: true do
click_button
(
'Save variable'
)
expect
(
page
).
to
have_content
(
'Variable was successfully updated.'
)
expect
(
project
.
variables
.
first
.
value
).
to
eq
(
''
)
expect
(
project
.
variables
(
true
)
.
first
.
value
).
to
eq
(
''
)
end
it
'edits variable to be protected'
do
...
...
@@ -125,7 +125,7 @@ describe 'Project variables', js: true do
click_button
(
'Save variable'
)
expect
(
page
).
to
have_content
(
'Variable was successfully updated.'
)
expect
(
project
.
variables
.
first
).
to
be_protected
expect
(
project
.
variables
(
true
)
.
first
).
to
be_protected
end
it
'edits variable to be unprotected'
do
...
...
@@ -140,6 +140,6 @@ describe 'Project variables', js: true do
click_button
(
'Save variable'
)
expect
(
page
).
to
have_content
(
'Variable was successfully updated.'
)
expect
(
project
.
reload
.
variables
.
first
).
not_to
be_protected
expect
(
project
.
variables
(
true
)
.
first
).
not_to
be_protected
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