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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:58:15+00:00 2026-05-22T16:58:15+00:00

I asked this question on the rspec mailing list but didn’t get a response,

  • 0

I asked this question on the rspec mailing list but didn’t get a response, so I thought I’d try here.

Using rspec 1.3.2 and rspec-rails 1.3.4 with rails 2.3.11 on ruby 1.9.2-p180, when I

$ rake spec:models

they all pass. When I

$ rake spec:controllers

they all pass. When I

$ rake spec:views

they all pass. But when I

$ rake spec

I get


<path to gem>/activesupport-2.3.11/lib/active_support/dependencies.rb:177: stack level too deep (SystemStackError)

I’ve been tinkering around with the rake file, and when I change


t.spec_files = FileList['spec/**/*_spec.rb']

in the default task to hit just one of the subdirectories, such as


t.spec_files = FileList['spec/models/**/*_spec.rb']

then rake spec works. I’ve done this for models, controllers, and views, and rake spec works fine for each. But including all of them like


t.spec_files = FileList['spec/models/**/*_spec.rb', 'spec/controllers/**/*_spec.rb', 'spec/views/**/*_spec.rb']

does not work (same error as mentioned above). Ironically, including just models and views does work:


t.spec_files = FileList['spec/models/**/*_spec.rb', 'spec/views/**/*_spec.rb']

but it seems that any combination including controllers will fail. This is odd to me since rake spec:controllers works. Unless it has something to do with the number of files and/or examples. The number of files and examples for each spec type is

models:      25 files, 391 examples
controllers: 26 files, 973 examples
views:       52 files, 508 examples

Using just rake spec did work on Ruby 1.8.7(-p302) and Ruby 1.9.1(-p243).

Does anyone have any ideas? I can run each group individually (and even create an alias to do it all at once), but then rspec has to spin up the app 3 times. Besides, that doesn’t address why this isn’t working on ruby 1.9.2.

  • 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-22T16:58:16+00:00Added an answer on May 22, 2026 at 4:58 pm

    I can’t explain why, but when I remove

    --loadby mtime
    --reverse
    

    from spec/spec.opts, rake spec works again. It might have something to do with this thread [1], but I don’t know.

    Peace.

    [1] http://www.ruby-forum.com/topic/1151108

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

Sidebar

Related Questions

I asked this question on serverfault but I didn't get any response. I try
I asked this question on the PyQt mailing list, and didn't get any responses,
I asked this question awhile ago, but didn't get a usuable answer. Basically, I
i asked this question before but haven't been able to get an answer.. i
I asked this question before but didn't make it clear that I meant in
I asked this question previously and thought I had it figured out but it
I asked this question on the Google Group but I think I will get
I asked this question earlier but I didn't express myself correctly. If I have
I asked this question on the jQueryUI forums, but got no response. I've created
(I asked this question in another way , and got some interesting responses but

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.