Note that there are some explanatory texts on larger screens.

plurals
  1. PO`load': no such file to load
    text
    copied!<p>I'm newbie on <em>ruby on rails</em> and I'm trying to test my controller with respect on <em>ruby on rails</em>. It worked before, but now I don't know what happened, but when I do the test, I got the next error message:</p> <pre><code>/Library/Ruby/Gems/1.8/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746:in `load': no such file to load -- /Users/armandodejesussantoyareales/Documents/project_newbie/Estaciones/estaciones/spec/controllers/user_controller_spec.rb (LoadError) </code></pre> <p>this is my spec file:</p> <pre><code>require 'spec_helper' describe UserController do it "create new user" do get :create, :user =&gt; { :email =&gt; 'foo@example.com', :name =&gt; 'userexample' } flash[:notice] = 'new user was successfully created.' end describe "signup" do before { visit signup_path } let(:submit) { "Create my account" } describe "with invalid information" do it "should not create a user" do expect { click_button submit }.not_to change(User, :count) end end describe "with valid information" do before do fill_in "Name", with: "Example User" fill_in "Email", with: "user@example.com" fill_in "Password", with: "foobar" fill_in "Confirmation", with: "foobar" end it "should create a user" do expect { click_button submit }.to change(User, :count).by(1) end end end end </code></pre> <p>and this is my <code>Usercontroller</code></p> <pre><code>class UserController &lt; ApplicationController def new @user = User.new end def create @user = User.new(params[:user]) if @user.save redirect_to user_session_path else redirect_to new_user_session_path end def show @user = User.find(params[:id]) #redirect_to @user end end </code></pre>
 

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