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