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
94038279
Commit
94038279
authored
Jul 25, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
842de4ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
spec/models/build_spec.rb
spec/models/build_spec.rb
+1
-1
spec/requests/ci/api/builds_spec.rb
spec/requests/ci/api/builds_spec.rb
+1
-1
spec/views/projects/builds/show.html.haml_spec.rb
spec/views/projects/builds/show.html.haml_spec.rb
+1
-1
No files found.
spec/models/build_spec.rb
View file @
94038279
...
...
@@ -259,7 +259,7 @@ describe Ci::Build, models: true do
let
(
:trigger
)
{
create
(
:ci_trigger
,
project:
project
)
}
let
(
:trigger_request
)
{
create
(
:ci_trigger_request_with_variables
,
pipeline:
pipeline
,
trigger:
trigger
)
}
let
(
:user_trigger_variable
)
do
{
key: :TRIGGER_KEY
,
value:
'TRIGGER_VALUE
'
,
public:
false
}
{
key: :TRIGGER_KEY
_1
,
value:
'TRIGGER_VALUE_1
'
,
public:
false
}
end
let
(
:predefined_trigger_variable
)
do
{
key:
'CI_BUILD_TRIGGERED'
,
value:
'true'
,
public:
true
}
...
...
spec/requests/ci/api/builds_spec.rb
View file @
94038279
...
...
@@ -98,7 +98,7 @@ describe Ci::API::API do
{
"key"
=>
"CI_BUILD_TRIGGERED"
,
"value"
=>
"true"
,
"public"
=>
true
},
{
"key"
=>
"DB_NAME"
,
"value"
=>
"postgres"
,
"public"
=>
true
},
{
"key"
=>
"SECRET_KEY"
,
"value"
=>
"secret_value"
,
"public"
=>
false
},
{
"key"
=>
"TRIGGER_KEY
"
,
"value"
=>
"TRIGGER_VALUE
"
,
"public"
=>
false
}
{
"key"
=>
"TRIGGER_KEY
_1"
,
"value"
=>
"TRIGGER_VALUE_1
"
,
"public"
=>
false
}
)
end
...
...
spec/views/projects/builds/show.html.haml_spec.rb
View file @
94038279
...
...
@@ -59,7 +59,7 @@ describe 'projects/builds/show' do
end
it
'shows trigger variables in separate lines'
do
expect
(
rendered
).
to
have_css
(
'code'
,
text:
variable_regexp
(
'TRIGGER_KEY_1'
,
'TRIGGER_VALUE_1'
))
expect
(
rendered
).
to
have_css
(
'code'
,
text:
variable_regexp
(
'TRIGGER_KEY_1'
,
'TRIGGER_VALUE_1'
))
expect
(
rendered
).
to
have_css
(
'code'
,
text:
variable_regexp
(
'TRIGGER_KEY_2'
,
'TRIGGER_VALUE_2'
))
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