Skip to main content

🛍️ CYBER MONDAY ALL WEEK get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Nelly Nelly
    Nelly Nelly
    7,134 Points

    No error when I run `rake`but still having error when running `rspec spec`

    Posted August 10, 2016 11:57am by Nelly Nelly
    Nelly Nelly
    7,134 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Simplifying Tests with Factories

    3 Answers

  • Nelly Nelly
    Nelly Nelly
    7,134 Points

    destroy_spec.rb still failing

    Posted August 9, 2016 10:02am by Nelly Nelly
    Nelly Nelly
    7,134 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Fixing Our Tests

    5 Answers

  • Marco Antonio Santana Borrego
    Marco Antonio Santana Borrego
    6,192 Points

    Error when testing for relationship user -> todo_lists

    Posted May 3, 2016 10:41pm by Marco Antonio Santana Borrego
    Marco Antonio Santana Borrego
    6,192 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Scoping Todo Lists

    0 Answers

  • Daniel Lopez Rivas
    Daniel Lopez Rivas
    16,757 Points

    todo_list_params

    Posted March 3, 2016 6:22pm by Daniel Lopez Rivas
    Daniel Lopez Rivas
    16,757 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Scoping Todo Lists

    1 Answer

  • Fenian Noakes
    PLUS
    Fenian Noakes
    Courses Plus Student 5,212 Points

    Fill in the blank by creating a user from an already defined user factory:

    Posted October 12, 2015 5:12am by Fenian Noakes
    Fenian Noakes
    Courses Plus Student 5,212 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Simplifying Tests with Factories

    1 Answer

  • Fenian Noakes
    PLUS
    Fenian Noakes
    Courses Plus Student 5,212 Points

    Fill in the blank to create the "User" factory

    Posted October 12, 2015 5:06am by Fenian Noakes
    Fenian Noakes
    Courses Plus Student 5,212 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Adding Test Helpers

    1 Answer

  • Anthony Quisenberry
    Anthony Quisenberry
    13,074 Points

    how do I fake a log in for a feature test?

    Posted July 15, 2015 2:03am by Anthony Quisenberry
    Anthony Quisenberry
    13,074 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Requiring Login

    1 Answer

  • CHI WAI YIP
    CHI WAI YIP
    10,438 Points

    undefined method `sign_in'

    Posted July 4, 2015 11:16pm by CHI WAI YIP
    CHI WAI YIP
    10,438 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Fixing Our Tests

    1 Answer

  • Philip Huffman
    Philip Huffman
    23,050 Points

    User factory issue

    Posted May 15, 2015 11:31pm by Philip Huffman
    Philip Huffman
    23,050 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Adding Test Helpers

    1 Answer

  • Binu Alexander
    Binu Alexander
    4,081 Points

    Fill in the blank by building a stubbed user from an already defined user factory:

    Posted May 15, 2015 1:27pm by Binu Alexander
    Binu Alexander
    4,081 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Testing, Scoping, and Factories

    1 Answer

  • John Martens
    John Martens
    8,689 Points

    Create_spec still failing "Email is invalid"

    Posted May 6, 2015 10:41pm by John Martens
    John Martens
    8,689 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Fixing Our Tests

    2 Answers

  • John Martens
    John Martens
    8,689 Points

    Getting a NameError on uninitialized constant AuthenticationHelpers

    Posted May 6, 2015 10:18am by John Martens
    John Martens
    8,689 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Fixing Our Tests

    1 Answer

  • Joshua Shroy
    Joshua Shroy
    9,943 Points

    Capybara not finding link in support file.

    Posted April 6, 2015 7:22pm by Joshua Shroy
    Joshua Shroy
    9,943 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Adding Test Helpers

    1 Answer

  • Sebastian Velandia
    Sebastian Velandia
    24,676 Points

    controller.stub(:current_user).and_return(User.new) is not working

    Posted January 14, 2015 10:11pm by Sebastian Velandia
    Sebastian Velandia
    24,676 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Requiring Login

    0 Answers

  • Sebastian Velandia
    Sebastian Velandia
    24,676 Points

    in which part of the video does Jason explains this code snippet? add_flash_types :my, :types

    Posted January 11, 2015 10:16pm by Sebastian Velandia
    Sebastian Velandia
    24,676 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Requiring Login

    1 Answer

  • James demby
    James demby
    10,296 Points

    Using the Downloads to start over.

    Posted January 4, 2015 8:43pm by James demby
    James demby
    10,296 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Fixing Our Tests

    0 Answers

  • Simon Walsh
    PLUS
    Simon Walsh
    Courses Plus Student 1,741 Points

    Quizzes

    Posted December 22, 2014 2:34pm by Simon Walsh
    Simon Walsh
    Courses Plus Student 1,741 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Fixing Our Tests

    0 Answers

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    For startups, does test-driven-development make sense?

    Posted December 6, 2014 4:38pm by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Simplifying Tests with Factories

    7 Answers

  • Matej Lukášik
    Matej Lukášik
    27,440 Points

    Switching to current_user.todo_lists.new does not work, moreover, makes more tests fail. HELP PLEAAASE!

    Posted July 21, 2014 6:43pm by Matej Lukášik
    Matej Lukášik
    27,440 Points
    • Ruby
    • User Authentication with Rails
    • Adding User Support to Our Application
    • Scoping Todo Lists

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord