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 trialJohn Martens
8,689 PointsUndefined method 'to' for SecureRandom:Module
very frustrating!..... Can't get test to pass...
<code> expect (SecureRandom).to receive(:urlsafe_base64) </code> Test fails with: NoMethodError undefined method 'to' for SecureRandom:Module
1 Answer
Salman Akram
Courses Plus Student 40,065 PointsHi John,
Yes indeed it is very frustrating, we don't depend on Jason Seifer's Ruby courses here which were outdated and some errors without explanation. If you like to understand everything of what's going on - use this Michael Hartl's Popular Tutorial. Yep, it is free and better to use different resources outside Treehouse.