From b019f647af5917e5ffaa4bb5d6120e24a0740f2d Mon Sep 17 00:00:00 2001 From: johnnyshields <27655+johnnyshields@users.noreply.github.com> Date: Sun, 20 Oct 2024 04:21:42 +0900 Subject: [PATCH] fix spec --- Rakefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index a31e25a..c1402b8 100644 --- a/Rakefile +++ b/Rakefile @@ -1,13 +1,12 @@ #!/usr/bin/env rake # -*- mode: ruby -*- -require 'rubygems' -require './lib/natural_sort.rb' -require 'rake/testtask' +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' +require 'rubocop/rake_task' -task :default => :test +RuboCop::RakeTask.new(:rubocop) -Rake::TestTask.new do |t| - t.libs << 'test' - t.test_files = FileList['test/**/test_*.rb'] -end +RSpec::Core::RakeTask.new(:spec) + +task default: [:spec]