Rakefile in exception_handling-3.0.pre.1 vs Rakefile in exception_handling-3.0.0.pre.2
- old
+ new
@@ -1,18 +1,15 @@
#!/usr/bin/env rake
# frozen_string_literal: true
-require "bundler/gem_tasks"
require 'rake/testtask'
+require "bundler/gem_tasks"
-namespace :test do
- Rake::TestTask.new do |t|
- t.name = :unit
- t.libs << "test"
- t.pattern = 'test/unit/**/*_test.rb'
- t.verbose = true
- end
- Rake::Task['test:unit'].comment = "Run the unit tests"
+require_relative 'spec/rake_test_warning_false'
+
+desc "run rspec unit tests"
+begin
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new(:rspec)
end
-task test: 'test:unit'
-task default: 'test'
+task default: :rspec