2019-10-17 05:07:07 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-24 11:23:57 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 05:08:32 -04:00
|
|
|
RSpec.describe Resolvers::MetadataResolver do
|
2019-01-24 11:23:57 -05:00
|
|
|
include GraphqlHelpers
|
|
|
|
|
|
|
|
describe '#resolve' do
|
|
|
|
it 'returns version and revision' do
|
2021-05-05 11:10:05 -04:00
|
|
|
expect(resolve(described_class)).to have_attributes(
|
|
|
|
version: Gitlab::VERSION,
|
|
|
|
revision: Gitlab.revision,
|
|
|
|
kas: kind_of(InstanceMetadata::Kas))
|
2019-01-24 11:23:57 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|