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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:24:58+00:00 2026-06-17T14:24:58+00:00

I am using Rspec with my Rails 3.2.11 app. I have installed and set

  • 0

I am using Rspec with my Rails 3.2.11 app. I have installed and set up spork.
I use datamapper as ORM.

Yet when spork is running, a running a single test takes more than a minute.
Even if the test being run is empty. Something is surely wrong. But I cannot figure
out what exactly.

My test_spec is as this:

require "spec_helper"
require "cancan/matchers"

describe User do
end

My spec helper file can be found here: https://gist.github.com/4593609

When I time the rspec:

➜  books git:(dev) ✗ time rspec --drb spec/models/test_spec.rb
No examples found.


Finished in 1 minute 51.08 seconds
0 examples, 0 failures
rspec --drb spec/models/test_spec.rb  1.49s user 0.04s system 1% cpu 1:52.94 total

Spork Log:

➜  books git:(dev) ✗ spork
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
Rack::File headers parameter replaces cache_control after Rack 1.5.
Spork is ready and listening on 8989!
Running tests with args ["spec/models/test_spec.rb"]...
Done.

Running tests with args ["spec/models/test_spec.rb"]...
Done.

This is for an empty spec. It takes more time for specs with lots of examples.
What can be taking so long for it to run ?

  • 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-17T14:24:59+00:00Added an answer on June 17, 2026 at 2:24 pm

    I found a solution for this problem. The problem was in
    my spec_helper file.

     config.before(:suite) {
       DataMapper.auto_upgrade!
     }
    

    Because of these configs, Datamapper was trying to autoupgrade
    each time I ran the test. On commenting this config, spec started
    working normally even when spork is not running.

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

Sidebar

Related Questions

I have a Rails app and I am trying to test it. I use
I´m testing my rails app using rspec and remarkable. I have the following spec
In our rspec test for rails 3.1.0 app, we use both Factory.build and Factory.attributes_for.
Its a rails 2.3.5 app. I'm using the rspec and cucumber for testing. When
Does anyone know how to test page_caching in Rails using RSpec without having to
I have recently started using RSpec for Integration testing in my Rails application, to
I am using Ruby on Rails 3.2.2, cucumber-rails-1.3.0, rspec-rails-2.8.1, capybara-1.1.2 and factory_girl-2.6.3. I have
I am trying to run rspec in my rails app using the spec command-
I'm using rspec-rails 2.11.0 in my app, but when I execute rspec spec/ something
I'm developing a Rails 3.1 engine and want to test it. I use RSpec

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.