Rakefile in template_params-0.1.0 vs Rakefile in template_params-0.1.1
- old
+ new
@@ -1,6 +1,15 @@
+# frozen_string_literal: true
require "bundler/gem_tasks"
-require "rspec/core/rake_task"
-RSpec::Core::RakeTask.new(:spec)
+require "rubocop/rake_task"
+RuboCop::RakeTask.new
-task :default => :spec
+require "rspec/core/rake_task"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.verbose = false
+end
+
+# Default task: lint then test
+task default: [] # in case it hasn't been set
+Rake::Task[:default].clear
+task default: [:rubocop, :spec]