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
ce55999b
Commit
ce55999b
authored
Apr 06, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We no longer has has_command? method
parent
95ecbfed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+0
-34
No files found.
spec/models/ci/build_spec.rb
View file @
ce55999b
...
@@ -735,40 +735,6 @@ describe Ci::Build, :models do
...
@@ -735,40 +735,6 @@ describe Ci::Build, :models do
end
end
end
end
describe
'#has_commands?'
do
context
'when build has commands'
do
let
(
:build
)
do
create
(
:ci_build
,
commands:
'rspec'
)
end
it
'has commands'
do
expect
(
build
).
to
have_commands
end
end
context
'when does not have commands'
do
context
'when commands are an empty string'
do
let
(
:build
)
do
create
(
:ci_build
,
commands:
''
)
end
it
'has no commands'
do
expect
(
build
).
not_to
have_commands
end
end
context
'when commands are not set at all'
do
let
(
:build
)
do
create
(
:ci_build
,
commands:
nil
)
end
it
'has no commands'
do
expect
(
build
).
not_to
have_commands
end
end
end
end
describe
'#has_tags?'
do
describe
'#has_tags?'
do
context
'when build has tags'
do
context
'when build has tags'
do
subject
{
create
(
:ci_build
,
tag_list:
[
'tag'
])
}
subject
{
create
(
:ci_build
,
tag_list:
[
'tag'
])
}
...
...
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