Rakefile in dentaku-3.0.0 vs Rakefile in dentaku-3.1.0
- old
+ new
@@ -1,17 +1,20 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
+RuboCop::RakeTask.new
+
desc "Run specs"
task :spec do
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w{--colour --format progress}
t.pattern = 'spec/**/*_spec.rb'
end
end
desc "Default: run specs."
-task default: :spec
+task(:default).clear.enhance [:spec, :rubocop]
task :console do
begin
require 'pry'
console = Pry