Commit 960b6337 authored by Micaël Bergeron's avatar Micaël Bergeron

fix specs

parent a46fde67
......@@ -118,7 +118,6 @@ describe Projects::ArtifactsController do
shared_examples 'a valid file' do
it 'serves the file using workhorse' do
binding.pry
subject
expect(response).to have_gitlab_http_status(200)
......
......@@ -204,28 +204,6 @@ describe Ci::Build do
end
end
describe '#downloadable_single_artifacts_file?' do
let(:build) { create(:ci_build, :artifacts, artifacts_file_store: store) }
subject { build.downloadable_single_artifacts_file? }
context 'artifacts are stored locally' do
let(:store) { ObjectStorage::Store::LOCAL }
it { is_expected.to be_truthy }
end
context 'artifacts are stored remotely' do
let(:store) { ObjectStorage::Store::REMOTE }
before do
stub_artifacts_object_storage
end
it { is_expected.to be_falsey }
end
end
describe '#artifacts_expired?' do
subject { build.artifacts_expired? }
......
......@@ -116,7 +116,6 @@ describe PipelineSerializer do
shared_examples 'no N+1 queries' do
it 'verifies number of queries', :request_store do
binding.pry
recorded = ActiveRecord::QueryRecorder.new { subject }
expect(recorded.count).to be_within(1).of(40)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment