From 6ab11484482b742d2960ae9e2fc6b62252254f6b Mon Sep 17 00:00:00 2001 From: ikramagix Date: Fri, 27 Sep 2024 23:31:57 +0300 Subject: [PATCH] edit rakefile for gem publishing --- Rakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index cca7175..7168491 100644 --- a/Rakefile +++ b/Rakefile @@ -3,10 +3,12 @@ require "bundler/gem_tasks" require "rspec/core/rake_task" -RSpec::Core::RakeTask.new(:spec) - -require "rubocop/rake_task" +# Define the RSpec task for running tests +RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = 'spec/**/*_spec.rb' +end RuboCop::RakeTask.new +# Default task to run specs and RuboCop task default: %i[spec rubocop]