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
Jérome Perrin
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
Show 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
...
@@ -361,14 +361,13 @@ describe Ci::Build, models: true do
describe
:artifacts_browse_url
do
describe
:artifacts_browse_url
do
subject
{
build
.
artifacts_browse_url
}
subject
{
build
.
artifacts_browse_url
}
it
"should be nil if artifact
doesn't exist
"
do
it
"should be nil if artifact
s browser is unsupported
"
do
build
.
update_attributes
(
artifacts_file:
nil
)
allow
(
build
).
to
receive
(
:artifacts_browser_supported?
).
and_return
(
false
)
is_expected
.
to
be_nil
is_expected
.
to
be_nil
end
end
it
'should not be nil if artifact exist'
do
it
'should not be nil if artifacts browser is supported'
do
gif
=
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
allow
(
build
).
to
receive
(
:artifacts_browser_supported?
).
and_return
(
true
)
build
.
update_attributes
(
artifacts_file:
gif
)
is_expected
.
to_not
be_nil
is_expected
.
to_not
be_nil
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