2020-11-10 19:08:58 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'fast_spec_helper'
|
2022-01-20 10:11:58 -05:00
|
|
|
require_relative '../../app/models/instance_metadata'
|
|
|
|
require_relative '../../app/models/instance_metadata/kas'
|
2020-11-10 19:08:58 -05:00
|
|
|
|
|
|
|
RSpec.describe InstanceMetadata do
|
|
|
|
it 'has the correct properties' do
|
|
|
|
expect(subject).to have_attributes(
|
|
|
|
version: Gitlab::VERSION,
|
2021-05-05 11:10:05 -04:00
|
|
|
revision: Gitlab.revision,
|
|
|
|
kas: kind_of(::InstanceMetadata::Kas)
|
2020-11-10 19:08:58 -05:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|