debian-mirror-gitlab/spec/models/instance_metadata_spec.rb

16 lines
408 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
require 'fast_spec_helper'
2022-04-04 11:22:00 +05:30
require_relative '../../app/models/instance_metadata'
require_relative '../../app/models/instance_metadata/kas'
2021-01-29 00:20:46 +05:30
RSpec.describe InstanceMetadata do
it 'has the correct properties' do
expect(subject).to have_attributes(
version: Gitlab::VERSION,
2021-06-08 01:23:25 +05:30
revision: Gitlab.revision,
kas: kind_of(::InstanceMetadata::Kas)
2021-01-29 00:20:46 +05:30
)
end
end