From 404995e87a32234c96ae5b42731198075ae0d2c3 Mon Sep 17 00:00:00 2001 From: X_AJ_X <88792057+XAJX179@users.noreply.github.com> Date: Sun, 28 Dec 2025 03:09:19 +0530 Subject: [PATCH] docs(README): add note and links to update ruby version --- README.md | 3 +++ spec/01_string_spec.rb | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index f8c42916..c2338093 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ These lessons cover many topics, but it does not cover everything that RSpec is ## Set-Up Run `rbenv versions` to confirm that you have the same Ruby version installed as the one indicated in the `.ruby-version` file. If you do not have this version installed, please refer back to these [instructions](https://www.theodinproject.com/lessons/ruby-installing-ruby) to install it. +> [!NOTE] +> If you get a Ruby version error, it's recommended to [update your ruby installation](https://www.theodinproject.com/lessons/ruby-installing-ruby#update-ruby). Alternatively, you can [change the local ruby version](https://www.theodinproject.com/lessons/ruby-installing-ruby#set-local-and-global-ruby-version) to your installed version if your version is not too behind from output of `rbenv local`. (to check your installed version: `ruby -v`) + Run `bundle install` from the root directory. ## How to use this playground diff --git a/spec/01_string_spec.rb b/spec/01_string_spec.rb index 305351ed..aa0b971a 100644 --- a/spec/01_string_spec.rb +++ b/spec/01_string_spec.rb @@ -1,5 +1,10 @@ # frozen_string_literal: true +# NOTE: If you get a Ruby version error, it's recommended to [update your ruby installation](https://www.theodinproject.com/lessons/ruby-installing-ruby#update-ruby). +# Alternatively, you can [change the local ruby version](https://www.theodinproject.com/lessons/ruby-installing-ruby#set-local-and-global-ruby-version) +# to your installed version if your version is not too behind from output of `rbenv local`. +# (to check your installed version: `ruby -v`) + describe String do # Let creates a helper method with a memoized value that is cached for the # same example but not across different examples. Let is lazy-evaluated;