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

  • SEARCH
  • Home
  • 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 681143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:27:04+00:00 2026-05-14T01:27:04+00:00

I am starting a new project for a client today. I have done some

  • 0

I am starting a new project for a client today.

I have done some rails projects before but never bothered writing tests for them.
I’d like to change that starting with this new project.
I am aware there are several testing tools, but am a bit confused as to which I should be using.

I heard of RSpec, Mocha, Webrat, and Cucumber.
Please keep in mind I never really wrote any regular tests, so my knowledge of testing in general is quite limited.

How would you suggest I get started?

Thanks!


Thank you for all the responses! I posted a related question that may interest those who view this question in the future. You can find it here.

  • 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-14T01:27:04+00:00Added an answer on May 14, 2026 at 1:27 am

    I prefer using Rspec and Cucumber in conjunction. I also prefer Capybara over Webrat.

    Rspec is wonderful for it’s rails integration and structure. It’s technically behavior testing, but in practice it ends up feeling like unit testing. It also allows you to group and define “specs”, or rspec tests, in any structure you like with ‘describe’ blocks.

    Cucumber is higher level. It is what you will translate your user stories into. For instance, you may decide that your users should be able to change their password, so you’ll write something like this:

     Scenario: Change password
        Given I am logged in
        And I am on the change password page
        When I fill in "p4ssw0rd" for "old_password"
        And I fill in "newp4ssw0rd$$" for "new_password"
        Then my password should be "newp4ssw0rd$$"
    

    If you are working with a QA dept, you can show your tests to them, and they’ll instantly know the status of any given feature, and how the feature is supposed to work. Additionally, if you have enterprising testers, they can write tests themselves, even if they are not programmers in general.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am starting a new client/server project at work and I want to start
I'm starting a new project here (Windows Forms). What's the best option today for
I'm starting a new C# project that uses a database, but I want it
I have a freelance web application project where the client requests new features every
I'm starting new project. The client interface is based on GWT (and GXT) I
I will be starting a new project soon and am looking for some architectural
I'm starting a new project using Linux and PHP, but for the early dev
We are starting a new project to develop a website using django. We have
I'm starting a new project and the client wants to use the Entity Framework
I am starting out on a new project and have fallen in love with

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.