2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Resolvers::MetadataResolver do
|
|
|
|
include GraphqlHelpers
|
|
|
|
|
|
|
|
describe '#resolve' do
|
|
|
|
it 'returns version and revision' do
|
|
|
|
expect(resolve(described_class)).to eq(version: Gitlab::VERSION, revision: Gitlab.revision)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|