Hello fellow ruby learners!
Is anyone else having trouble passing the Rspec test for 03_iteration.rb? (Under Rspec: Rspec Practice 02 section in the Pre-course)
When run the ruby file in command line (ruby lib/03_iteration.rb), the output is correct but when i run the test through Rspec, the test fails:
Failures:
- #subwords can find a simple word
Failure/Error: expect(words).to eq([“cat”])
expected: ["cat"] got: nil
(compared using ==)
Does anyone have any idea as to why this is happening? (or what I should search in google to debug this issue?)
Thank you