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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
84ec1113
Commit
84ec1113
authored
Apr 05, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add doc when rspec-set won't work
parent
186c1bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
doc/development/testing_guide/best_practices.md
doc/development/testing_guide/best_practices.md
+4
-2
No files found.
doc/development/testing_guide/best_practices.md
View file @
84ec1113
...
@@ -216,8 +216,10 @@ project, one project will do for the entire file. This can be achieved by using
...
@@ -216,8 +216,10 @@ project, one project will do for the entire file. This can be achieved by using
reloads or recreates the model, _only_ if needed. That is, when you changed
reloads or recreates the model, _only_ if needed. That is, when you changed
properties or destroyed the object.
properties or destroyed the object.
There is one gotcha; you can't reference a model defined in a
`let`
block in a
Note that you can't reference a model defined in a
`let`
block in a
`set`
block.
`set`
block.
Also,
`set`
is not supported in
`:js`
specs since those don't use transactions
to clean up database state after each example.
### Time-sensitive tests
### Time-sensitive tests
...
...
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