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
Kazuhiko Shiozaki
gitlab-ce
Commits
f80d7a86
Commit
f80d7a86
authored
Jan 11, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build model specs
parent
94cf7590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
spec/models/build_spec.rb
spec/models/build_spec.rb
+4
-5
No files found.
spec/models/build_spec.rb
View file @
f80d7a86
...
...
@@ -361,14 +361,13 @@ describe Ci::Build, models: true do
describe
:artifacts_browse_url
do
subject
{
build
.
artifacts_browse_url
}
it
"should be nil if artifact
doesn't exist
"
do
build
.
update_attributes
(
artifacts_file:
nil
)
it
"should be nil if artifact
s browser is unsupported
"
do
allow
(
build
).
to
receive
(
:artifacts_browser_supported?
).
and_return
(
false
)
is_expected
.
to
be_nil
end
it
'should not be nil if artifact exist'
do
gif
=
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
build
.
update_attributes
(
artifacts_file:
gif
)
it
'should not be nil if artifacts browser is supported'
do
allow
(
build
).
to
receive
(
:artifacts_browser_supported?
).
and_return
(
true
)
is_expected
.
to_not
be_nil
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