Skip to content

Commit

Permalink
fix: add test task to Rakefile for CI
Browse files Browse the repository at this point in the history
- Map 'rake test' to 'rake spec' for CI compatibility
- Configure RSpec to use documentation format
- Fix CI build failure due to missing test task
  • Loading branch information
nagstler committed Feb 2, 2025
1 parent 6b59f58 commit 2646644
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"

RSpec::Core::RakeTask.new(:spec) do |task|
task.rspec_opts = ['--format documentation']
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = '--format documentation'
end

RuboCop::RakeTask.new

task :default => [:spec, :rubocop]
task :default => :spec
task :test => :spec # Add this line to make 'rake test' work

0 comments on commit 2646644

Please sign in to comment.