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
Tatuya Kamada
gitlab-ce
Commits
2ee24bd9
Commit
2ee24bd9
authored
May 06, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update specs to be valid only for tagged runner
parent
dd8e9e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
spec/features/runners_spec.rb
spec/features/runners_spec.rb
+13
-9
No files found.
spec/features/runners_spec.rb
View file @
2ee24bd9
...
@@ -126,17 +126,21 @@ describe "Runners" do
...
@@ -126,17 +126,21 @@ describe "Runners" do
expect
(
page
).
to
have_content
'Can run untagged jobs Yes'
expect
(
page
).
to
have_content
'Can run untagged jobs Yes'
end
end
scenario
'user want to prevent runner from running untagged job'
do
context
'when runner has tags'
do
visit
runners_path
(
project
)
before
{
runner
.
update_attribute
(
:tag_list
,
[
'tag'
])
}
page
.
within
(
'.activated-specific-runners'
)
do
first
(
'small > a'
).
click
end
uncheck
'runner_run_untagged'
scenario
'user want to prevent runner from running untagged job'
do
click_button
'Save changes'
visit
runners_path
(
project
)
page
.
within
(
'.activated-specific-runners'
)
do
first
(
'small > a'
).
click
end
expect
(
page
).
to
have_content
'Can run untagged jobs No'
uncheck
'runner_run_untagged'
expect
(
runner
.
reload
.
run_untagged?
).
to
eq
false
click_button
'Save changes'
expect
(
page
).
to
have_content
'Can run untagged jobs No'
expect
(
runner
.
reload
.
run_untagged?
).
to
eq
false
end
end
end
end
end
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