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]