Rakefile in amqp-client-1.1.3 vs Rakefile in amqp-client-1.1.4

- old
+ new

@@ -2,17 +2,24 @@ 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.description = "Run all but TLS tests" + t.options = "--exclude=/_tls$/" + t.pattern = "test/**/*_test.rb" end +namespace :test do + Rake::TestTask.new(:all) do |t| + t.description = "Run all tests" + t.pattern = "test/**/*_test.rb" + end +end + require "rubocop/rake_task" RuboCop::RakeTask.new do |task| task.requires << "rubocop-minitest" end -task default: %i[test rubocop] +task default: [:test, *(:rubocop if RUBY_ENGINE == "ruby")]