summaryrefslogtreecommitdiff
path: root/qa/qa/specs/helpers/rspec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/helpers/rspec.rb')
-rw-r--r--qa/qa/specs/helpers/rspec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/qa/specs/helpers/rspec.rb b/qa/qa/specs/helpers/rspec.rb
index f49e556b0d9..853dfbfd1b6 100644
--- a/qa/qa/specs/helpers/rspec.rb
+++ b/qa/qa/specs/helpers/rspec.rb
@@ -19,8 +19,10 @@ module QA
# expanding into the global state
# See: https://github.com/rspec/rspec-core/issues/2603
def describe_successfully(*args, &describe_body)
+ reporter = ::RSpec.configuration.reporter
+
example_group = RSpec.describe(*args, &describe_body)
- ran_successfully = example_group.run RaiseOnFailuresReporter
+ ran_successfully = example_group.run reporter
expect(ran_successfully).to eq true
example_group
end