debian-mirror-gitlab/spec/graphql/resolvers/metadata_resolver_spec.rb

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

17 lines
383 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
2019-07-07 11:18:12 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Resolvers::MetadataResolver do
2019-07-07 11:18:12 +05:30
include GraphqlHelpers
describe '#resolve' do
it 'returns version and revision' do
2021-06-08 01:23:25 +05:30
expect(resolve(described_class)).to have_attributes(
version: Gitlab::VERSION,
revision: Gitlab.revision,
kas: kind_of(InstanceMetadata::Kas))
2019-07-07 11:18:12 +05:30
end
end
end