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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:35:49+00:00 2026-06-01T03:35:49+00:00

I am trying to build a test suite using Rspec and I have always

  • 0

I am trying to build a test suite using Rspec and I have always a “Stack Level too deep” failure message, whatever the test that I try to run.

I am using Rails 3.0.5 and Rspec 2.0.1

To make it very simple, I just made a simple test:

it "should show home page" do
  visit root_path
  response.should be_success
end

Testing ONLY this test file using:

rspec ./spec/requests/simple_test.rb

gives me the “Stack level too deep” error.

The root path is for now just a simple home page that says “this is the home page” and it works fine in a browser. Moreover, the test.log file shows that the request has been processed and gave a 200 OK answer … still the test fails “visit root_path: stack level too deep…

Anyone knows what is happening? I have searched the web and found many answers for which there was an infinite recursion but here ??? …

A last precision: a few months ago, I did not have this problem .. since then, I installed devise (version 1.5.3) … but here, I do not make any call to neither devise, nor user controllers, so what could cause this behaviour ?

Many thanks in advance for any clue… I don’t know how to tackle or debug this.

  • 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-01T03:35:51+00:00Added an answer on June 1, 2026 at 3:35 am

    The problem is a bug in webrat:

    Webrat 0.7.3 or 0.7.2 causes “Stack level too deep” error when used with Rspec 2.0.1.

    Downgrading to webrat 0.7.1 fixed the issue

    More explanations there: http://www.backdrifter.com/2010/11/07/stack-level-too-deep-with-rspec-2-and-webrat/

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

Sidebar

Related Questions

I'm trying to build a test suite program (using JRE 1.6 under Eclipse IDE,
I'm trying to effectively build a functional test suite for an applet, and I'm
I'm trying to build a questionnaire / personality test with jQuery. I have an
I'm trying to build a test environment to test an app against oracle and
I am getting my head around PHPUnit, and trying to build a test case
I'm trying to build a small stress test script to test how quickly a
I am trying to build correct query for my test server, and i am
I'm trying to build a simple environment check script for my firm's test environment.
We are currently working on an instrumentation test suite which runs on our build
Hello dearest community, I am trying to build a simple AutoUpdate application using VB.NET.

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.