Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 15:09:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 15:09:33 +0300
commit652bd073731b0028641672a75355c7918b5ac116 (patch)
treee0239f98153492ac89c6fc374c5dfd1aa270d8bf /spec/graphql
parent2af90cef2e2e9c776eae4394a43dba3be7f33d1e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql')
-rw-r--r--spec/graphql/types/base_field_spec.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/spec/graphql/types/base_field_spec.rb b/spec/graphql/types/base_field_spec.rb
index 2547d39bcb2..9251eaee3df 100644
--- a/spec/graphql/types/base_field_spec.rb
+++ b/spec/graphql/types/base_field_spec.rb
@@ -167,30 +167,30 @@ describe Types::BaseField do
end
end
end
+ end
- describe '#description' do
- context 'feature flag given' do
- let(:field) { described_class.new(name: 'test', type: GraphQL::STRING_TYPE, feature_flag: flag, null: false, description: 'Test description') }
- let(:flag) { :test_flag }
+ describe '#description' do
+ context 'feature flag given' do
+ let(:field) { described_class.new(name: 'test', type: GraphQL::STRING_TYPE, feature_flag: flag, null: false, description: 'Test description') }
+ let(:flag) { :test_flag }
- it 'prepends the description' do
- expect(field.description). to eq 'Test description. Available only when feature flag `test_flag` is enabled.'
- end
+ it 'prepends the description' do
+ expect(field.description). to eq 'Test description. Available only when feature flag `test_flag` is enabled.'
+ end
- context 'falsey feature_flag values' do
- using RSpec::Parameterized::TableSyntax
+ context 'falsey feature_flag values' do
+ using RSpec::Parameterized::TableSyntax
- where(:flag, :feature_value) do
- '' | false
- '' | true
- nil | false
- nil | true
- end
+ where(:flag, :feature_value) do
+ '' | false
+ '' | true
+ nil | false
+ nil | true
+ end
- with_them do
- it 'returns the correct description' do
- expect(field.description).to eq('Test description')
- end
+ with_them do
+ it 'returns the correct description' do
+ expect(field.description).to eq('Test description')
end
end
end