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

learn test returns a NoMethodError for NilClass #28

Open
justinmcla opened this issue Jan 26, 2021 · 0 comments
Open

learn test returns a NoMethodError for NilClass #28

justinmcla opened this issue Jan 26, 2021 · 0 comments

Comments

@justinmcla
Copy link

Traceback (most recent call last):
	11: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/bin/ruby_executable_hooks:24:in `<main>'
	10: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/bin/ruby_executable_hooks:24:in `eval'
	 9: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/bin/learn-test:23:in `<main>'
	 8: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/bin/learn-test:23:in `load'
	 7: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/bin/learn-test:73:in `<top (required)>'
	 6: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/runner.rb:21:in `run'
	 5: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/runner.rb:21:in `fork'
	 4: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/runner.rb:22:in `block in run'
	 3: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/runner.rb:49:in `report_and_clean'
	 2: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/reporter.rb:13:in `report'
	 1: from /Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/reporter.rb:47:in `report'
/Users/justinmclawhorn/.rvm/gems/ruby-2.6.1/gems/learn-test-3.3.1/lib/learn_test/strategies/mocha.rb:44:in `results': undefined method `[]' for nil:NilClass (NoMethodError)

This is the same error from a previous code along (here). Presumably, the lack of a test file is causing the error. Temporary workaround is to create a test directory and add an empty js file. learn test will then auto-submit to Canvas.

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

1 participant