Commit d6537e3b authored by Nick Kipling's avatar Nick Kipling

Fixes to presenter tests

parent d3b97477
......@@ -4,8 +4,8 @@ require 'spec_helper'
describe ::Packages::Detail::PackagePresenter do
let_it_be(:user) { create(:user) }
let!(:project) { create(:project, creator: user) }
let!(:package) { create(:npm_package, :with_build, project: project) }
let_it_be(:project) { create(:project, creator: user) }
let_it_be(:package) { create(:npm_package, :with_build, project: project) }
let(:presenter) { described_class.new(package) }
let_it_be(:user_info) { { name: user.name, avatar_url: user.avatar_url } }
......@@ -71,10 +71,6 @@ describe ::Packages::Detail::PackagePresenter do
it 'returns correct data when there is pipeline_info' do
expect(presenter.build_pipeline_info(package.build_info.pipeline)).to eq pipeline_info
end
it 'returns nil when there is no pipeline_info' do
expect(presenter.build_pipeline_info(nil)).to eq nil
end
end
context 'build_user_info' do
......
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