summaryrefslogtreecommitdiff
path: root/doc/development/testing_guide
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-04 06:06:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-04 06:06:46 +0000
commit15a2d004be2f79160752d77f701c0f08e7f96973 (patch)
tree88bcbd90f3ab751264232d1d1902a818c77a2409 /doc/development/testing_guide
parent80ff3642b4b5ef4db5b4b144d4a17c9cf60c4586 (diff)
downloadgitlab-ce-15a2d004be2f79160752d77f701c0f08e7f96973.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/testing_guide')
-rw-r--r--doc/development/testing_guide/best_practices.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/development/testing_guide/best_practices.md b/doc/development/testing_guide/best_practices.md
index 22dab30e362..c79642d8fed 100644
--- a/doc/development/testing_guide/best_practices.md
+++ b/doc/development/testing_guide/best_practices.md
@@ -61,6 +61,7 @@ bundle exec rspec spec/[path]/[to]/[spec].rb
- When using `evaluate_script("$('.js-foo').testSomething()")` (or `execute_script`) which acts on a given element,
use a Capyabara matcher beforehand (e.g. `find('.js-foo')`) to ensure the element actually exists.
- Use `focus: true` to isolate parts of the specs you want to run.
+- Use [`:aggregate_failures`](https://relishapp.com/rspec/rspec-core/docs/expectation-framework-integration/aggregating-failures) when there is more than one expectation in a test.
### System / Feature tests