TheOdinProject / ruby_testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug - Exercises: Link to RelishApp doc for RSpec version older than Gemfile RSpec version

nofxboy1234 opened this issue · comments

Complete the following REQUIRED checkboxes:

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this issue follows the Bug - location of bug: brief description of bug format, e.g. Bug - Exercises: File type incorrect for all test files

The following checkbox is OPTIONAL:

  • I would like to be assigned this issue to work on it

1. Description of the Bug:

02_array_spec.rb on line 6, links to a relishapp doc for RSpec 2.11. The included Gemfile for the exercise uses RSpec 3.9. 1 example fails, where it should pass.

rspec_failing_example

2. How To Reproduce:

Run RSpec for this example: nested_subject_spec.rb in the ruby_testing project

3. Expected Behavior:

The examples should all pass.

4. Desktop/Device:

  • Device: Desktop
  • OS: Ubuntu 22.04.2 LTS
  • Browser: Chrome
  • Version: Chrome Version 113.0.5672.63 (Official Build) (64-bit)

5. Additional Information:

It looks like the behaviour of a subject in a nested group changed between RSpec 2.11 and RSpec 3.9,
from '(outermost wins)' to '(innermost wins)': RSpec 3.9 doc

commented

@rlmoser99 Can you take a look at this please.

Since the example with a deprecation warning is from older documentation, I believe the only fix that is needed for us is to change the link to the current version.