summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/github_import/representation/lfs_object_spec.rb
blob: 6663a7366a53c97efa853d8b8f662afa89617368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'fast_spec_helper'

RSpec.describe Gitlab::GithubImport::Representation::LfsObject do
  describe '#github_identifiers' do
    it 'returns a hash with needed identifiers' do
      github_identifiers = {
        oid: 42
      }
      other_attributes = { something_else: '_something_else_' }
      lfs_object = described_class.new(github_identifiers.merge(other_attributes))

      expect(lfs_object.github_identifiers).to eq(github_identifiers)
    end
  end
end