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 8182891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:59:41+00:00 2026-06-07T00:59:41+00:00

I find it not so easy as one might think to start with TDD

  • 0

I find it not so easy as one might think to start with TDD in Rails.
I’ve searched for some examples but no-one really explains how to do TDD/BDD with Rspec AND cucumber. They usually use an old version of rspec, or prefer one on the other (so you find cucumber tests and rspec tests separated). And by the way the say what to do, but the real process is often not explained at all (I’ve read a lot on make them work togheter with Capybara, but only once on how to proceed on bdd with them).

I’d like to know how to use them togheter, how to avoid test duplication (disabling view specs and other tests that should be done with cucumber), and maybe an explanation of what not to test (for example I find it useless to test the HTML output in most cases, it can be useful to test if you’re logging in to match what you’re seeing, for example a flash message).

Can you please provide a step-by-step list of how do you proceed with BDD using this two tools togheter? It would be nice a fresh tutorial (using latest versions) or maybe a screencast.

Thanks.

  • 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-06-07T00:59:43+00:00Added an answer on June 7, 2026 at 12:59 am

    I highly recommend you the Rspec book which is exactly what you are looking for :

    It explains how to use Rspec and Cucumber together with a simple 2 loops process : The outer big loop is a Test – Code – Refactor process you do with cucumber and each step is made of multiple iteration of a Test – Code – Refactor process you do with Rspec.

    That books explains at the same time how and when to use each of the two tools.

    If you want a broader vision of TDD-BDD, I also suggest you the GOOS book which is more language/tool agnostic and more process oriented.

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

Sidebar

Related Questions

This should be an easy one, but surprisingly I could not find any information
Well, that must be an easy one but I can't find the solution anywhere.
This seemed to me like an easy one, but I can't seem to find
this is might be a very basic question, but seems like it's not easy
Hoping this will be a quick/easy one, but I can't seem to find the
Do you know any easy way to find a logging call that throws not
This might be a super easy answer, since I'm sure it's not uncommon. I
I am learning MFC and find it not that easy to use. I've heard
Im sure there is an easy answer for this one, but I've been looking
Well this might sound easy but to me it is confusing as heck. I

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.