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
7cda54c2
Commit
7cda54c2
authored
Nov 18, 2019
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make spring a runtime option for Guard
parent
09d8ae14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
Guardfile
Guardfile
+3
-2
doc/development/testing_guide/best_practices.md
doc/development/testing_guide/best_practices.md
+1
-7
No files found.
Guardfile
View file @
7cda54c2
...
...
@@ -2,8 +2,9 @@
# More info at https://github.com/guard/guard#readme
# If using spring, change command to "spring rspec"
guard
:rspec
,
cmd:
"bundle exec rspec"
do
cmd
=
ENV
[
'SPRING'
]
?
'spring rspec'
:
'bundle exec rspec'
guard
:rspec
,
cmd:
cmd
do
require
"guard/rspec/dsl"
dsl
=
Guard
::
RSpec
::
Dsl
.
new
(
self
)
...
...
doc/development/testing_guide/best_practices.md
View file @
7cda54c2
...
...
@@ -50,13 +50,7 @@ Use [guard](https://github.com/guard/guard) to continuously monitor for changes
bundle
exec
guard
```
When using spring and guard together, consider adjusting Guardfile:
```
ruby
guard
:rspec
,
cmd:
"spring rspec"
do
# ...
end
```
When using spring and guard together, use
`SPRING=1 bundle exec guard`
instead to make use of spring.
### General guidelines
...
...
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