summaryrefslogtreecommitdiff
path: root/spec/models/instance_metadata_spec.rb
blob: 46fd165e0653785f3ac5f7f29e5ff8fee82e9af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'fast_spec_helper'
require_relative '../../app/models/instance_metadata'
require_relative '../../app/models/instance_metadata/kas'

RSpec.describe InstanceMetadata do
  it 'has the correct properties' do
    expect(subject).to have_attributes(
      version: Gitlab::VERSION,
      revision: Gitlab.revision,
      kas: kind_of(::InstanceMetadata::Kas),
      enterprise: Gitlab.ee?
    )
  end
end