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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:29:39+00:00 2026-05-28T20:29:39+00:00

I am trying to debug a spec test using RubyMine, but, I get: uninitialized

  • 0

I am trying to debug a spec test using RubyMine, but, I get:

uninitialized constant QuizzesController

here is the full error:

Fast Debugger (ruby-debug-ide 0.4.17.beta8, ruby-debug-base
0.11.30.pre4) listens on 127.0.0.1:41134 /home/sam/Documents/RoR/course_builder/spec/controllers/quiz_spec.rb:1:in
<top (required)>': uninitialized constant QuizzesController
(NameError)
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in
load’
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in
block in load_spec_files'
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in
map’
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in
load_spec_files'
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:18:in
run’
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:80:in
run_in_process'
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:69:in
run’
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:10:in
block in autorun'
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-ide-0.4.17.beta8/lib/ruby-debug-ide.rb:127:in
debug_load’
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-ide-0.4.17.beta8/lib/ruby-debug-ide.rb:127:in
debug_program'
from /home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide:95:in
‘
from -e:1:in load'
from -e:1:in
‘

/quiz_spec.rb line 1 is describe QuizzesController do

I get this error only when trying to debug the spec file, the spec file will work normally if I just run it without debugging.

I am using spork, all spec tests run fine without debugging, but, I am stuck in trying to debug any of them, any help please ?

Here is my environment:

RubyGems Environment:
RUBYGEMS VERSION: 1.8.10
RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [i686-linux]
INSTALLATION DIRECTORY: /home/sam/.rvm/gems/ruby-1.9.3-p0@global
RUBY EXECUTABLE: /home/sam/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
EXECUTABLE DIRECTORY: /home/sam/.rvm/gems/ruby-1.9.3-p0@global/bin
RUBYGEMS PLATFORMS:
  ruby
  x86-linux
GEM PATHS:
   /home/sam/.rvm/gems/ruby-1.9.3-p0@global
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
REMOTE SOURCES:
   http://rubygems.org/
----------------------
IDE: JetBrains RubyMine (EAP) RM-112.291, build #RM-112.291
OS: Linux 3.0.0-14-generic[i386]
Java: 1.6.0_23-b23
RubyMine SDK Environment:
Sdk: RVM: ruby-1.9.3-p0 [global]
Sdk Version: ver.1.9.3p0 ( revision 33570) p0
Ruby Interpreter: /home/sam/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
RVM Sdk: yes, gemset:global
RVM Home: /home/sam/.rvm
Sdk Language Level: 1.9
Sdk Load Path:
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/i686-linux
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby/1.9.1
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby/1.9.1/i686-linux
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1
     /home/sam/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/i686-linux
     /home/sam/rubyMine4beta/rubystubs19
Sdk Gem paths:
     file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/bundler/gems
     file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems
Gems used for 'hope':
     kaminari (0.13.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/kaminari-0.13.0)
     coffee-rails (3.1.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/coffee-rails-3.1.1)
     rack (1.3.6, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rack-1.3.6)
     rspec-expectations (2.7.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-expectations-2.7.0)
     actionmailer (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/actionmailer-3.1.0)
     rspec-mocks (2.7.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-mocks-2.7.0)
     tilt (1.3.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/tilt-1.3.3)
     rspec-rails (2.7.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-rails-2.7.0)
     client_side_validations (3.1.4, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/client_side_validations-3.1.4)
     diff-lcs (1.1.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/diff-lcs-1.1.3)
     tzinfo (0.3.31, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/tzinfo-0.3.31)
     bcrypt-ruby (3.0.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/bcrypt-ruby-3.0.1)
     sprockets (2.0.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/sprockets-2.0.3)
     database_cleaner (0.7.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/database_cleaner-0.7.1)
     simple_form (1.5.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/simple_form-1.5.2)
     rack-ssl (1.3.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rack-ssl-1.3.2)
     childprocess (0.3.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/childprocess-0.3.0)
     rdoc (3.12, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rdoc-3.12)
     foreigner (1.1.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/foreigner-1.1.1)
     ansi (1.4.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/ansi-1.4.1)
     coffee-script (2.2.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/coffee-script-2.2.0)
     validate_url (0.2.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/validate_url-0.2.0)
     rack-mount (0.8.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rack-mount-0.8.3)
     cocoon (1.0.15, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/cocoon-1.0.15)
     guard (0.10.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/guard-0.10.0)
     i18n (0.6.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/i18n-0.6.0)
     turn (0.8.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/turn-0.8.3)
     guard-spork (0.5.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/guard-spork-0.5.1)
     addressable (2.2.6, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/addressable-2.2.6)
     haml (3.1.4, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/haml-3.1.4)
     hike (1.2.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/hike-1.2.1)
     orm_adapter (0.0.6, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/orm_adapter-0.0.6)
     rspec-core (2.7.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-core-2.7.1)
     sass (3.1.12, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/sass-3.1.12)
     erubis (2.7.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/erubis-2.7.0)
     metaclass (0.0.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/metaclass-0.0.1)
     jquery-rails (1.0.19, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/jquery-rails-1.0.19)
     selenium-webdriver (2.17.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/selenium-webdriver-2.17.0)
     builder (3.0.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/builder-3.0.0)
     json (1.6.5, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5)
     rack-cache (1.0.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rack-cache-1.0.3)
     will_paginate (3.0.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/will_paginate-3.0.2)
     bundler (1.0.21, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21)
     activeresource (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/activeresource-3.1.0)
     libv8 (3.3.10.4, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/libv8-3.3.10.4-x86-linux)
     factory_girl_rails (1.5.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/factory_girl_rails-1.5.0)
     warden (1.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/warden-1.1.0)
     uglifier (1.2.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/uglifier-1.2.2)
     execjs (1.2.13, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/execjs-1.2.13)
     sass-rails (3.1.5, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/sass-rails-3.1.5)
     rails (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rails-3.1.0)
     multi_json (1.0.4, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/multi_json-1.0.4)
     xpath (0.1.4, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/xpath-0.1.4)
     capybara-firebug (1.0.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/capybara-firebug-1.0.1)
     activemodel (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/activemodel-3.1.0)
     rubyzip (0.9.5, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rubyzip-0.9.5)
     rspec (2.7.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rspec-2.7.0)
     factory_girl (2.4.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/factory_girl-2.4.0)
     actionpack (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/actionpack-3.1.0)
     spork (0.9.0.rc9, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/spork-0.9.0.rc9)
     activesupport (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/activesupport-3.1.0)
     devise (1.5.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/devise-1.5.2)
     mime-types (1.17.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/mime-types-1.17.2)
     rake (0.9.2.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2)
     nokogiri (1.5.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/nokogiri-1.5.0)
     sqlite3 (1.3.5, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/sqlite3-1.3.5)
     rb-fsevent (0.4.3.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rb-fsevent-0.4.3.1)
     therubyracer (0.9.9, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/therubyracer-0.9.9)
     launchy (2.0.5, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/launchy-2.0.5)
     mail (2.3.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/mail-2.3.0)
     capybara (1.1.2, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/bundler/gems/capybara-edd4283edfe7)
     polyglot (0.3.3, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/polyglot-0.3.3)
     activerecord (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/activerecord-3.1.0)
     treetop (1.4.10, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/treetop-1.4.10)
     rack-test (0.6.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/rack-test-0.6.1)
     arel (2.2.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/arel-2.2.1)
     mocha (0.10.1, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/mocha-0.10.1)
     coffee-script-source (1.2.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/coffee-script-source-1.2.0)
     railties (3.1.0, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/railties-3.1.0)
     ffi (1.0.11, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/ffi-1.0.11)
     thor (0.14.6, file:///home/sam/.rvm/gems/ruby-1.9.3-p0@global/gems/thor-0.14.6)
  • 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-28T20:29:41+00:00Added an answer on May 28, 2026 at 8:29 pm

    You should put require 'spec_helper' in the first line of the spec file.

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

Sidebar

Related Questions

I’m trying to debug a memory leak problem. I’m using mtrace() to get a
I am trying to install capybara-webkit (0.8.0), but I get the error below, can
Trying to debug PHP using its default current-line-only error messages is horrible. How can
Ive been trying to debug this for hours but I was unable to get
I am trying to debug the shaders using the NVIDIA Parallel Nsight 2.1 but
I'm trying to debug an application (under PostgreSQL) and came across the following error:
Trying to debug a random error on a rather complex ASP.net page, there is
Im trying to debug application on Acer Iconia but the usb Debugging mode wont
Im trying to debug the following code using System; public class Parent { string
I'm trying to debug an app running inside the windows phone 7 emulator, 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.