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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:40:35+00:00 2026-05-25T13:40:35+00:00

I already asked a similar question on StackOverflow, and I got a very satisfactory

  • 0

I already asked a similar question on StackOverflow, and I got a very satisfactory answer. I am trying to get good at testing Ruby on Rails applications with RSpec this time and just doing it doesn’t work as mean to getting good (at least not for me).

There are too much things I don’t know:

  • what is a mock?
  • what is a stub?
  • how to test views?

Those are only three things I don’t know. And while developing an app, too often I arrive at a point where I know that I need to test something and I don’t know how to write a test for it…

So my question is: how can I can get good (or just ok) at BDD for Rails using RSpec?

A couple of things to mention though:

  • I hate Cucumber. It’s way to verbose for my taste.
  • I already followed the Ruby on Rails Tutorial by Michael Hartl. It taught me a lot indeed.
  • I am in the process of writing my first rails application which is a Tumblr clone.
  • I already bought The RSpec Book and I am waiting for my copy to arrive. Unfortunately it covers a lot of Cucumber.
  • 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-25T13:40:36+00:00Added an answer on May 25, 2026 at 1:40 pm

    As a beginner I learned (still learning) rspec by looking at other people’s rspecs. Find a large project(eg. https://github.com/diaspora/diaspora) with and see how other people approached the rspec .

    To find everything at a single place, below given link is quite helpful :

    http://kerryb.github.com/iprug-rspec-presentation/

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

Sidebar

Related Questions

I have asked a similar question before, but didn't get very good results. I've
I know that my question will be very similar to other ones already asked
This is a follow up to a very similar question I have already asked
I'm afraid very similar question has been asked already here , but for some
OK, I had asked a similar question before and had got an answer but
I already asked similar question here, but I still get some errors, so I
I already asked a similar question, PE Header requirements , but I'm not really
A similar question was already asked ( Performing a Stress Test on Web Application?
This is similar to a question that has already been asked. However, I am
I've already asked a similar question but this is slightly different so i Thought

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.