Rakefile in fawry-1.1.1 vs Rakefile in fawry-1.2.1
- old
+ new
@@ -1,12 +1,19 @@
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
RSpec::Core::RakeTask.new(:spec)
+RuboCop::RakeTask.new(:rubocop)
-task default: :spec
+task default: :rspec_rubocop
+
+task :rspec_rubocop do
+ Rake::Task['rubocop'].invoke
+ Rake::Task['spec'].invoke
+end
desc 'Start a console session with Fawry gem loaded'
task :console do
require 'irb'
require 'irb/completion'