debian-mirror-gitlab/spec/graphql/resolvers/metadata_resolver_spec.rb
2021-06-08 01:23:25 +05:30

16 lines
383 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Resolvers::MetadataResolver do
include GraphqlHelpers
describe '#resolve' do
it 'returns version and revision' do
expect(resolve(described_class)).to have_attributes(
version: Gitlab::VERSION,
revision: Gitlab.revision,
kas: kind_of(InstanceMetadata::Kas))
end
end
end