25 lines
661 B
Ruby
25 lines
661 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe GitlabSchema.types['IssueEscalationStatus'] do
|
|
specify { expect(described_class.graphql_name).to eq('IssueEscalationStatus') }
|
|
|
|
describe 'statuses' do
|
|
using RSpec::Parameterized::TableSyntax
|
|
|
|
where(:status_name, :status_value) do
|
|
'TRIGGERED' | :triggered
|
|
'ACKNOWLEDGED' | :acknowledged
|
|
'RESOLVED' | :resolved
|
|
'IGNORED' | :ignored
|
|
'INVALID' | nil
|
|
end
|
|
|
|
with_them do
|
|
it 'exposes a status with the correct value' do
|
|
expect(described_class.values[status_name]&.value).to eq(status_value)
|
|
end
|
|
end
|
|
end
|
|
end
|