From 5463b731a1f801ac8334f201449478a7a1833e0f Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Mon, 13 Jun 2016 22:00:06 -0500 Subject: [PATCH] Run tests with warnings enabled Should help clean up warnings in gems or apps that use Grape ;) refs: - http://mislav.net/2011/06/ruby-verbose-mode/ --- Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rakefile b/Rakefile index f4e330c03..64fe275f8 100644 --- a/Rakefile +++ b/Rakefile @@ -7,6 +7,8 @@ Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec/**/*_spec.rb' + spec.ruby_opts = '' if spec.ruby_opts.nil? + spec.ruby_opts << ' -w' unless ENV['NO_WARN'] == 'true' end RSpec::Core::RakeTask.new(:rcov) do |spec|