From 0792575e3c8da5f180b0763eb9f1ff144302eb2c Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Fri, 15 Mar 2019 16:26:05 +0000 Subject: [PATCH] Remove pointless warnings when running tests This removes warnings that were complicating the test output. All of the warnings were about other gems, except for one minor deprecation. --- Rakefile | 2 +- test/test_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index e9c78892..4a969f3c 100644 --- a/Rakefile +++ b/Rakefile @@ -11,7 +11,7 @@ end Rake::TestTask.new("test") do |t| t.libs << "test" t.test_files = FileList["test/**/*_test.rb"] - t.verbose = true + t.warning = false end task default: :test diff --git a/test/test_helper.rb b/test/test_helper.rb index 95001ac4..17f3f850 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -14,7 +14,7 @@ require 'minitest/around' require 'rack/utils' require 'rack/test' -require 'mocha/mini_test' +require 'mocha/minitest' require 'timecop' require 'gds-api-adapters' require 'govuk-content-schema-test-helpers'