Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with learn and mocha –– results: undefined method`[]' for nil:NilClass (NoMethodError) #17

Closed
kylejb opened this issue Aug 6, 2020 · 1 comment

Comments

@kylejb
Copy link

kylejb commented Aug 6, 2020

I am flagging the below as an issue because this lab seems to be an outlier.

  • Events Leading to Error
    running learn on my system consistently produces this error:

  • Error Message
    /Users/home/.rvm/gems/ruby-2.6.1/gems/learn-test-2.6.1/lib/learn_test/strategies/mocha.rb:42:in `results': undefined method `[]' for nil:NilClass (NoMethodError)

  • Additional Testing
    Even after completing the assignment correctly (confirmed by comparing my code with the solutions branch), learn throws the same error; I initially suspected the results error may have relied upon completion of the assignment to populate the test's results method with an array of data from Game of Throne's API.

EDIT:

  • Temporary Fix: I was able to get around the issue by commenting out Flatiron's unit test file, running learn, and then running npm audit fix.
@lizbur10
Copy link
Contributor

lizbur10 commented Mar 3, 2021

Hi there! I'm sorry you ran into this problem! I haven't been able to recreate it, so I'm going to close this issue.

Cheers 💙

@lizbur10 lizbur10 closed this as completed Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants