BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
35bf7c7e
Commit
35bf7c7e
authored
Mar 22, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Firs pass at improving the testing documentation
[ci skip] Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
dbbf4818
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
testing.md
doc/development/fe_guide/testing.md
+3
-4
testing.md
doc/development/testing.md
+0
-0
No files found.
doc/development/fe_guide/testing.md
View file @
35bf7c7e
...
...
@@ -80,18 +80,17 @@ If an integration test depends on JavaScript to run correctly, you need to make
sure the spec is configured to enable JavaScript when the tests are run. If you
don't do this you'll see vague error messages from the spec runner.
To enable a JavaScript driver in an
`rspec`
test, add
`
js: true
`
to the
To enable a JavaScript driver in an
`rspec`
test, add
`
:js
`
to the
individual spec or the context block containing multiple specs that need
JavaScript enabled:
```
ruby
# For one spec
it
'presents information about abuse report'
,
js:
true
do
it
'presents information about abuse report'
,
:js
do
# assertions...
end
describe
"Admin::AbuseReports"
,
js:
true
do
describe
"Admin::AbuseReports"
,
:js
do
it
'presents information about abuse report'
do
# assertions...
end
...
...
doc/development/testing.md
View file @
35bf7c7e
This diff is collapsed.
Click to expand it.
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