summaryrefslogtreecommitdiff
path: root/spec/graphql/resolvers/ci/runner_platforms_resolver_spec.rb
blob: 1d1fb4a9967d83cc6c9a01676d17d0291e8d3e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Resolvers::Ci::RunnerPlatformsResolver, feature_category: :runner_fleet do
  include GraphqlHelpers

  describe '#resolve' do
    subject(:resolve_subject) { resolve(described_class) }

    it 'returns all possible runner platforms' do
      expect(resolve_subject).to contain_exactly(
        hash_including(name: :linux), hash_including(name: :osx),
        hash_including(name: :windows), hash_including(name: :docker),
        hash_including(name: :kubernetes)
      )
    end
  end
end