summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-01-21 23:23:02 +0000
committerRobert Speicher <robert@gitlab.com>2016-01-21 23:23:02 +0000
commit3f5e6c6cf65640d01ac5c784b7ba47c74531519e (patch)
treed7cd239ee6669386106773401fedaecfeed2092c /spec/models
parent307b099064c598208ff25c8dbf5250d9561e62f3 (diff)
parent9b0f57781e8c71eb0e627a63078fedcedfe62bbb (diff)
downloadgitlab-ce-3f5e6c6cf65640d01ac5c784b7ba47c74531519e.tar.gz
Merge branch 'ci/recursive-artifacts-entries' into 'master'
Add method to calculate total size of artifacts in subpath See merge request !2500
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/build_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index d12b9e65c82..d30bc7d0554 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -362,12 +362,12 @@ describe Ci::Build, models: true do
subject { build.artifacts_browse_url }
it "should be nil if artifacts browser is unsupported" do
- allow(build).to receive(:artifacts_browser_supported?).and_return(false)
+ allow(build).to receive(:artifacts_metadata?).and_return(false)
is_expected.to be_nil
end
it 'should not be nil if artifacts browser is supported' do
- allow(build).to receive(:artifacts_browser_supported?).and_return(true)
+ allow(build).to receive(:artifacts_metadata?).and_return(true)
is_expected.to_not be_nil
end
end
@@ -391,8 +391,8 @@ describe Ci::Build, models: true do
end
- describe :artifacts_browser_supported? do
- subject { build.artifacts_browser_supported? }
+ describe :artifacts_metadata? do
+ subject { build.artifacts_metadata? }
context 'artifacts metadata does not exist' do
it { is_expected.to be_falsy }
end