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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
438 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,
2023-01-13 00:05:48 +05:30
kas: kind_of(::InstanceMetadata::Kas),
enterprise: Gitlab.ee?
2021-01-29 00:20:46 +05:30
)
end
end