Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5953f41b
Commit
5953f41b
authored
Jan 19, 2022
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a warning about how to verify that specs are well-isolated
parent
4e01ef2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
doc/development/testing_guide/best_practices.md
doc/development/testing_guide/best_practices.md
+5
-0
No files found.
doc/development/testing_guide/best_practices.md
View file @
5953f41b
...
...
@@ -642,6 +642,11 @@ should either:
It takes around one second to load tests that are using
`fast_spec_helper`
instead of 30+ seconds in case of a regular
`spec_helper`
.
WARNING:
To verify that code and its specs are well-isolated from Rails, run the spec
individually via
`bin/rspec`
. Don't use
`bin/spring rspec`
as it loads
`spec_helper`
automatically.
### `subject` and `let` variables
The GitLab RSpec suite has made extensive use of
`let`
(along with its strict, non-lazy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment