diff --git a/README.md b/README.md index 3899d36..941801e 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,13 @@ * Ruby 4.0.6 * Minitest 6.0.6 +* Rake 13.4.2 ## Instructions Checkout class is in `checkout.rb` -Run tests with `ruby -Ilib:test tests.rb` +Run tests with `rake test` `main.rb` is a scratchpad diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..b0ec822 --- /dev/null +++ b/Rakefile @@ -0,0 +1,3 @@ +require "minitest/test_task" + +Minitest::TestTask.create diff --git a/tests.rb b/test/checkout_test.rb similarity index 98% rename from tests.rb rename to test/checkout_test.rb index 4f18bf0..e0967d2 100644 --- a/tests.rb +++ b/test/checkout_test.rb @@ -1,8 +1,8 @@ require "minitest/autorun" -require "./checkout.rb" +require "checkout.rb" -class TestCheckout < Minitest::Test +class CheckoutTest < Minitest::Test def setup @checkout = Checkout.new end