diff --git a/Rakefile b/Rakefile index e47ab9d..d66e635 100644 --- a/Rakefile +++ b/Rakefile @@ -8,4 +8,4 @@ Dir.glob(File.join(__dir__ || Dir.pwd, "tasks", "*.rake")) { |f| import f } desc "Run checks" task :check -task default: [:test, :check] +task default: [:check, :spec, :test] diff --git a/tasks/rspec.rake b/tasks/rspec.rake new file mode 100644 index 0000000..a0c1aeb --- /dev/null +++ b/tasks/rspec.rake @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +# @type self: Rake::DSL + +require "rspec/core/rake_task" + +RSpec::Core::RakeTask.new(:spec) do |t, args| + t.pattern = "spec/**/*_spec.rb" + t.rspec_opts = args.to_a.join(" ") +end