Skip to content

Commit

Permalink
Refactor Rakefile for improved test task configuration
Browse files Browse the repository at this point in the history
- Update the test task in Rakefile to include all files ending with "_test.rb" in the "test" directory
- Change the default task to only run the test task
  • Loading branch information
BenMMcLean committed Dec 6, 2023
1 parent 9e4ee3d commit 0026dc1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/test_*.rb"]
t.test_files = FileList['test/**/*_test.rb']
end

task default: %i[test standard]
task :default => :test

0 comments on commit 0026dc1

Please sign in to comment.