Commit c64f7473 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'dependency_list_null_blob_path_bug' into 'master'

Fix null blob_path

See merge request gitlab-org/gitlab-ee!14081
parents afb0405b b68d1861
# frozen_string_literal: true
class DependencyEntity < Grape::Entity
expose :name, :packager, :version
expose :location do
class LocationEntity < Grape::Entity
expose :blob_path, :path
end
expose :name, :packager, :version
expose :location, using: LocationEntity
end
......@@ -18,10 +18,6 @@ describe DependencyEntity do
subject { described_class.represent(dependency).as_json }
it { is_expected.to include(:name) }
it { is_expected.to include(:version) }
it { is_expected.to include(:packager) }
it { expect(subject[:location]).to include(:blob_path) }
it { expect(subject[:location]).to include(:path) }
it { is_expected.to eq(dependency) }
end
end
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