diff --git a/Gemfile b/Gemfile index c94ac89..b9b7182 100644 --- a/Gemfile +++ b/Gemfile @@ -3,5 +3,5 @@ source "https://rubygems.org" gemspec gem "rake" -gem "minitest" +gem "tldr" gem "standard" diff --git a/Gemfile.lock b/Gemfile.lock index bfb6de0..0f67d81 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,15 +7,20 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) + attr_extras (7.1.0) base64 (0.1.1) + concurrent-ruby (1.2.2) + diff-lcs (1.5.0) json (2.6.3) language_server-protocol (3.17.0.3) lint_roller (1.1.0) - minitest (5.20.0) + optimist (3.1.0) parallel (1.23.0) parser (3.2.2.3) ast (~> 2.4.1) racc + patience_diff (1.2.0) + optimist (~> 3.0) racc (1.7.1) rainbow (3.1.1) rake (13.0.6) @@ -51,6 +56,13 @@ GEM standard-performance (1.2.0) lint_roller (~> 1.1) rubocop-performance (~> 1.19.0) + super_diff (0.10.0) + attr_extras (>= 6.2.4) + diff-lcs + patience_diff + tldr (0.2.0) + concurrent-ruby (~> 1.2) + super_diff (~> 0.10) unicode-display_width (2.4.2) PLATFORMS @@ -58,10 +70,10 @@ PLATFORMS arm64-darwin-22 DEPENDENCIES - minitest rake standard time_up! + tldr BUNDLED WITH 2.4.19 diff --git a/Rakefile b/Rakefile index 9645e15..e5cdb08 100644 --- a/Rakefile +++ b/Rakefile @@ -1,11 +1,5 @@ require "bundler/gem_tasks" -require "rake/testtask" require "standard/rake" +require "tldr/rake" -Rake::TestTask.new(:test) do |t| - t.libs << "test" - t.libs << "lib" - t.test_files = FileList["test/**/*_test.rb"] -end - -task default: [:test, "standard:fix"] +task default: [:tldr, "standard:fix"] diff --git a/test/test_helper.rb b/test/test_helper.rb index 29a8aa1..f9f61f4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,4 +1,4 @@ $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "time_up" -require "minitest/autorun" +require "tldr" diff --git a/test/time_up_test.rb b/test/time_up_test.rb index 273c5cb..05aeea4 100644 --- a/test/time_up_test.rb +++ b/test/time_up_test.rb @@ -1,8 +1,6 @@ require "test_helper" -class TimeUpTest < Minitest::Test - make_my_diffs_pretty! - +class TimeUpTest < TLDR def teardown TimeUp.delete_all end