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:
Diffstat (limited to 'spec/tooling/rspec_flaky/example_spec.rb')
-rw-r--r--spec/tooling/rspec_flaky/example_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/tooling/rspec_flaky/example_spec.rb b/spec/tooling/rspec_flaky/example_spec.rb
index 8ff280fd855..d001ed32444 100644
--- a/spec/tooling/rspec_flaky/example_spec.rb
+++ b/spec/tooling/rspec_flaky/example_spec.rb
@@ -9,7 +9,8 @@ RSpec.describe RspecFlaky::Example do
metadata: {
file_path: 'spec/foo/bar_spec.rb',
line_number: 2,
- full_description: 'hello world'
+ full_description: 'hello world',
+ feature_category: :feature_category
},
execution_result: double(status: 'passed', exception: 'BOOM!'),
attempts: 1
@@ -89,4 +90,10 @@ RSpec.describe RspecFlaky::Example do
expect(subject.exception).to eq(rspec_example.execution_result.exception)
end
end
+
+ describe '#feature_category' do
+ it 'returns the metadata[:feature_category] of the RSpec::Core::Example' do
+ expect(subject.feature_category).to eq(rspec_example.metadata[:feature_category])
+ end
+ end
end