diff options
Diffstat (limited to 'spec/graphql/types/deployment_tier_enum_spec.rb')
-rw-r--r-- | spec/graphql/types/deployment_tier_enum_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/graphql/types/deployment_tier_enum_spec.rb b/spec/graphql/types/deployment_tier_enum_spec.rb new file mode 100644 index 00000000000..752bf895d74 --- /dev/null +++ b/spec/graphql/types/deployment_tier_enum_spec.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Types::DeploymentTierEnum do + it 'includes a value for each supported environment tier' do + expect(described_class.values).to match( + 'PRODUCTION' => have_attributes(value: :production), + 'STAGING' => have_attributes(value: :staging), + 'TESTING' => have_attributes(value: :testing), + 'DEVELOPMENT' => have_attributes(value: :development), + 'OTHER' => have_attributes(value: :other) + ) + end +end |