Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby User Authentication with Rails Adding User Support to Our Application Fixing Our Tests

Getting a NameError on uninitialized constant AuthenticationHelpers

This is what I have in my spec_helper.rb file:

RSpec.configure do |config| config.include TodoListHelpers, type: :feature config.include RailsDomIdHelper, type: :feature config.include FactoryGirl::Syntax::Methods config.include AuthenticationHelpers, type: :controller

and it can't get past the last line when I try to run testing. The line is identical to the video and I checked all other required files and everything is the same

1 Answer

Hi John, could you edit the post to make the code easier to read? Begin the code with ruby (then a new line), and after your code start a new line and then write three backticks:

Thanks Andrew, I was wondering how to make my code look like code and I havent had time to look up how to do it. Next time I will look here first to make sure it is formatted properly