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
217ec5fd
Commit
217ec5fd
authored
May 27, 2021
by
James Fargher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rspec filter :silence_stdout
This filter allows redirecting $stdout to prevent too much noise in specs.
parent
dda51887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
spec/spec_helper.rb
spec/spec_helper.rb
+9
-0
No files found.
spec/spec_helper.rb
View file @
217ec5fd
...
...
@@ -403,6 +403,15 @@ RSpec.configure do |config|
end
end
# Allows stdout to be redirected to reduce noise
config
.
before
(
:each
,
:silence_stdout
)
do
$stdout
=
StringIO
.
new
end
config
.
after
(
:each
,
:silence_stdout
)
do
$stdout
=
STDOUT
end
config
.
disable_monkey_patching!
end
...
...
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