From b3e61ebb38173bf1e378957b18379fbaf11237ee Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 31 Oct 2017 16:00:09 +0530 Subject: [PATCH] suppress print output when running specs --- spec/tasks/posts_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/tasks/posts_spec.rb b/spec/tasks/posts_spec.rb index acaf19c5dc8..8215a082649 100644 --- a/spec/tasks/posts_spec.rb +++ b/spec/tasks/posts_spec.rb @@ -9,7 +9,7 @@ RSpec.describe "Post rake tasks" do before do Rake::Task.clear Discourse::Application.load_tasks - IO.any_instance.stubs(:puts) + STDOUT.stubs(:write) end describe 'remap' do