Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3877428
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:29:47+00:00 2026-05-19T22:29:47+00:00

I have been using ruby exclusively for about a month and I really love

  • 0

I have been using ruby exclusively for about a month and I really love it. However, I am having an incredibly hard time using, or even learning TDD. My brain just doesn’t function that way…

I really, really want to learn TDD but to be honest I am a bit confused. All the articles that I find when Googling around are mostly specific to Rails, which is not interesting to me because I want to learn how to do efficient testing for any ruby application, from the simple one-file script to the complicated gem, not for Web apps. Also, there are so many frameworks and so few tutorials to get started.

Could anybody give me any advice on how to learn TDD so that I can at least start to consider myself an aspiring rubyist?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:29:48+00:00Added an answer on May 19, 2026 at 10:29 pm

    The best way to learn TDD is by just doing it. I suggest you build a new project using TDD. This means don’t write any non-testing code unless you have a failing test.

    It will make you think about writing tests: I want to write this code, how do I write a test for it so I can write it.

    It will show you the layered nature of testing. Instead of want a name that is required and can’t contain numbers. you’ll first test setting and reading a name, test requiring the name, test it shouldn’t contain numbers, than think if it has more constraints and test those.

    Remember:

    • Write a test before you write the code
    • Make sure the test fails! It’s important to know you’re testing logic is correct
    • Before writing the next test make sure all tests succeed
    • You can always clean up your code, if the tests keep working you didn’t change the design
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using ActiveResource in my Ruby on Rails applications for some time,
I have been using the Zend Framework with an MVC configuration, read about Ruby
I have been using Ruby for a while now and I find, for bigger
I have been using Eclipse as an IDE for a short amount of time
I have been using the eval method in ruby many times. But I have
I have been using autotest for unit testing in ruby. Is there an equivalent
I have been using MongoDB and the Ruby driver and Mongoid, and lines db.things.find({j:
I have a question about Ruby arrays but it's kind of hard to describe
We have been using CruiseControl for quite a while with NUnit and NAnt. For
I have been using PHP and JavaScript for building my dad's website. He wants

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.