Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby Debug "no such file to load --spec_helper"
    primarykey
    data
    text
    <p>Noob who may be missing something obvious ... I'm trying to debug an Rspec file. The Rspec file is stripped down at this point:</p> <pre><code> require 'spec_helper' describe PagesController do render_views describe "GET 'home'" do describe "when not signed in" do before(:each) do get :home end it "should be successful" do response.should be_success end it "should have a vendor section" do response.should have_selector("h1", :content =&gt; "Vendor") end it "should have a hospital section" do response.should have_selector("h1", :content =&gt; "Hospital") end end end </code></pre> <p>I make the following call from the command line:</p> <pre><code>rdebug spec/controllers/pages_controller_spec.rb </code></pre> <p>The debugger runs, but throws the following error:</p> <pre><code>&gt; require 'spec_helper' &lt;internal:lib/rubygems/custom_require&gt;:29:in `require' &lt;internal:lib/rubygems/custom_require&gt;:29:in `require' /home/kevin/.rvm/bin/rails_projects/evaluationrx/spec/controllers/pages_controller_spec.rb:1:in `&lt;top (required)&gt;' /home/kevin/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/ruby-debug19-0.11.6/bin/rdebug:125:in `debug_load' /home/kevin/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/ruby-debug19-0.11.6/bin/rdebug:125:in `debug_program' /home/kevin/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/ruby-debug19-0.11.6/bin/rdebug:412:in `&lt;top (required)&gt;' /home/kevin/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/bin/rdebug:19:in `load' /home/kevin/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/bin/rdebug:19:in `&lt;main&gt;' Uncaught exception: no such file to load -- spec_helper </code></pre> <p>Rspec without the debugger without a problem. I'm using Rspec 2.3.0, ruby-debug19 (0.11.6), Rails 3.0.3 and ruby 1.9.2. Why can't the debugger see the spec_helper file?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload