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


Andrew Rice
Andrew Rice
2,233 Points

Ruby on Rails track - Validating Presence video - issue with Rails v4?

I am following along with the tutorial and trying to run some tests. I am using Ruby v2+ and Rails v4+, which obviously isn't what the videos use, so this is likely the culprit. First off, I noticed in the video they say to go to the unit folder in tests and open user_test.rb. I don't have this there, mine is under the models folder.

Now, when I go to run "ruby -Itest test/models/user_test.rb" it says:

ruby: No such file or directory -- /test/models/user_test.rb (LoadError)

And if I cd in to that folder and try to run user_test.rb, it doesn't run either.

Any ideas?

Sorry, I'm an idiot. I accidentally included a / before the test...

2 Answers

Andrew Rice
Andrew Rice
2,233 Points

Yeah all good, thanks.