Rake spec controller test output hideus

Is there any way to change the output of rake spec fails?

The errors are just totally over the top ugly and not helpful. First
of all the ruby -Ilib line always comes before each test and I find it
distracting. But if an error occurs on something that is not nil it
just gives me the entire contents of that object and that is no small
matter when the object is a HTTP request response.

Here is the example of the spec.

specify “should not allow new users without the correct fields” do
post :signup, :user => { :login => “newbob”, :password =>
“newpassword”,
:password_confirmation => “wrong” , :email =>
[email protected]”}
response.should.be.success
response.session[:user].should.be.nil
User.find_by_login(“newbob”).should.be.nil
end

And here is the actual error it gives me to “help”. I think this
amount should rather be given if I request a rake spec:detailed or
something. If multiple errors occur then I spend a long time just
scrolling around to find the name of the tests that fail.


ruby -Ilib
“/opt/local/lib/ruby/gems/1.8/gems/rspec-0.5.9/lib/spec/rake/…/…/…/bin/spec”
“spec/controllers/forum_controller_spec.rb”
“spec/controllers/home_controller_spec.rb”
“spec/controllers/links_controller_spec.rb”
“spec/controllers/user_controller_spec.rb”

…F.

ExpectationNotMetError in ‘The UserController should not allow new
users without the correct fields’
ActionController::TestResponse
#<ActionController::TestResponse:0x24d6880 @body="\n\n\n\n\tMe
Ruby, You Jane\n\t<meta http-equiv=“Content-Type”
content=“text/html; charset=utf-8” />\n\n\t<link
href="/stylesheets/fluidity.css?1150242248" media=“screen”
rel=“Stylesheet” type=“text/css” />\n\t<link
href="/stylesheets/scaffold.css?1149102830" media=“screen”
rel=“Stylesheet” type=“text/css” />\n\t<script
src="/javascripts/prototype.js?1149938828"
type=“text/javascript”>\n<script
src="/javascripts/effects.js?1149938828"
type=“text/javascript”>\n<script
src="/javascripts/dragdrop.js?1149938828"
type=“text/javascript”>\n<script
src="/javascripts/controls.js?1149938828"
type=“text/javascript”>\n<script
src="/javascripts/application.js?1149938828"
type=“text/javascript”>\n\n\n\n\n<div
id=“hdrimg”>\n\n<span class=“login”>\n\t| <a
href="/user/login">login \n\t\n\t\n\t\n\t |\n\n\n

<a
href="/">Me Ruby, You Jane

\n\n<ul
id=“nav”>\n\t
  • <a href="/">home
  • \n\t\n\t
  • <a
    href="/forum">forum
  • \n\t\n\n\n\t\n\n\n<div class=“rowcontainer” id=“message”>\n<div
    class=“fullcolumn”>\n

    Signup
    unsuccessful

    \n\n<script type=“text/javascript”
    language=“javascript” charset=“utf-8”>\n// \n\n\n\n\n\t
    \n<div

    class=“halfcolumn”>\n<form action="/user/signup"
    method=“post”><p style=“text-align:center;”>\n<div
    class=“errorExplanation” id=“errorExplanation”>

    3 errors
    prohibited this user from being saved

    There were problems with
    the following fields:

    • Name can’t be blank
    • Name is
      too short (minimum is 4 characters)
    • Password doesn’t match
      confirmation
    <label
    for=“user_login”>Login:\n
    \n<input id=“user_login”
    name=“user[login]” size=“20” type=“text” value=“newbob”
    />
    \n<label for=“user_password”>Password:\n
    \n<div
    class=“fieldWithErrors”><input id=“user_password”
    name=“user[password]” size=“20” type=“password”
    value=“newpassword” />
    \n<label
    for=“password_confirmation”>Confirm Password:\n
    \n<input
    id=“user_password_confirmation” name=“user[password_confirmation]”
    size=“20” type=“password” value=“wrong” />
    \n<label
    for=“user_email”>Email:\n
    \n<input id=“user_email”
    name=“user[email]” size=“20” type=“text”
    value=“[email protected]” />
    \n<label for=“user_name”>Display
    Name:\n
    \n<div class=“fieldWithErrors”><input
    id=“user_name” name=“user[name]” size=“20” type=“text”
    />
    \n<input name=“commit” type=“submit” value=“Submit”
    />\n\n<div class=“halfcolumn”>\n

    Why Sign
    up?

    \n

    Lorem ipsum dolor sit amet, consectetur adipisicing elit,
    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
    enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
    ut aliquip ex ea commodo consequat. Duis aute irure dolor in
    reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
    pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
    culpa qui officia deserunt mollit anim id est
    laborum.

    \n\n\n\n\n\n<div id=“bttmbar”> <span
    id=“design”>design: <a
    href=“http://www.davereederdesign.com/”>davereederdesign.com<span
    id=“copyright”>Copyright © 2006 <a
    href=“http://jongretar.net”>Jon Gretar B.. All Rights
    Reserved\n\n\n\n",
    @headers={“Status”=>“200 OK”, “cookie”=>[],
    “Cache-Control”=>“no-cache”}, @redirected_to=nil, @assigns=[],
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @template=#<#Class:0x251ee78:0x24d4f80 @headers={“Status”=>“200 OK”,
    “cookie”=>[], “Cache-Control”=>“no-cache”},
    @template_class=ActionView::Base, @cookies={},
    @base_path="/Users/jgb/Development/Rails/learningruby/config/…/app/views",
    @flash={:warning=>“Signup unsuccessful”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @template_root="/Users/jgb/Development/Rails/learningruby/config/…/app/views",
    @assigns={“template_root”=>"/Users/jgb/Development/Rails/learningruby/config/…/app/views",
    “user”=>#<User:0x24d48a0 @attributes={“name”=>nil,
    “salt”=>“CRSGzNy5rM”, “updated_at”=>nil, “profile”=>nil,
    “hashed_password”=>“cd5cdad6d116671769e35bd6ffefd9077e2c1bb6”,
    “url”=>nil, “login”=>“newbob”, “email”=>“[email protected]”,
    “created_at”=>nil}, @password=“newpassword”,
    @errors=#<ActiveRecord::Errors:0x24d19fc @base=#<User:0x24d48a0 …>,
    @errors={“name”=>[“can’t be blank”, “is too short (minimum is 4
    characters)”], “password”=>[“doesn’t match confirmation”]}>,
    @new_record=true, @password_confirmation=“wrong”>,
    “template_class”=>ActionView::Base,
    “response”=>#<ActionController::TestResponse:0x24d6880 …>,
    “action_name”=>“signup”, “template”=>#<#Class:0x251ee78:0x24d4f80
    …>, “request_origin”=>“0.0.0.0 at 2006-06-16 16:23:36”,
    “url”=>#<ActionController::UrlRewriter:0x24d4ea4
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”},
    @request=#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>>,
    “session”=>#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    “variables_added”=>nil,
    “params”=>{“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, “ignore_missing_templates”=>nil,
    “request”=>#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>, “cookies”=>{}, “logger”=>#<Logger:0x2469848
    @level=0, @progname=nil, @logdev=#<Logger::LogDevice:0x2469640
    @filename="/Users/jgb/Development/Rails/learningruby/config/…/log/test.log",
    @mutex=#<Logger::LogDevice::LogDeviceMutex:0x2469550
    @mon_entering_queue=[], @mon_count=0, @mon_owner=nil,
    @mon_waiting_queue=[]>,
    @dev=#<File:/Users/jgb/Development/Rails/learningruby/config/…/log/test.log>,
    @shift_size=1048576, @shift_age=0>, @formatter=nil,
    @default_formatter=#<Logger::Formatter:0x24696cc
    @datetime_format=nil>>, “flash”=>{:warning=>“Signup unsuccessful”},
    “before_filter_chain_aborted”=>false, “headers”=>{“Status”=>“200 OK”,
    “cookie”=>[], “Cache-Control”=>“no-cache”}},
    @before_filter_chain_aborted=false,
    @params={“user”=>{“password_confirmation”=>“wrong”, “login”=>“newbob”,
    “password”=>“newpassword”, “email”=>“[email protected]”},
    “action”=>“signup”, “controller”=>“user”}, @action_name=“signup”,
    @user=#<User:0x24d48a0 @attributes={“name”=>nil, “salt”=>“CRSGzNy5rM”,
    “updated_at”=>nil, “profile”=>nil,
    “hashed_password”=>“cd5cdad6d116671769e35bd6ffefd9077e2c1bb6”,
    “url”=>nil, “login”=>“newbob”, “email”=>“[email protected]”,
    “created_at”=>nil}, @password=“newpassword”,
    @errors=#<ActiveRecord::Errors:0x24d19fc @base=#<User:0x24d48a0 …>,
    @errors={“name”=>[“can’t be blank”, “is too short (minimum is 4
    characters)”], “password”=>[“doesn’t match confirmation”]}>,
    @new_record=true, @password_confirmation=“wrong”>,
    @request=#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>, @first_render=“user/signup”,
    @url=#<ActionController::UrlRewriter:0x24d4ea4
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”},
    @request=#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>>,
    @response=#<ActionController::TestResponse:0x24d6880 …>,
    @content_for_layout="<div class=“rowcontainer”>\n<div
    class=“halfcolumn”>\n<form action="/user/signup"
    method=“post”><p style=“text-align:center;”>\n<div
    class=“errorExplanation” id=“errorExplanation”>

    3 errors
    prohibited this user from being saved

    There were problems with
    the following fields:

    • Name can’t be blank
    • Name is
      too short (minimum is 4 characters)
    • Password doesn’t match
      confirmation
    <label
    for=“user_login”>Login:\n
    \n<input id=“user_login”
    name=“user[login]” size=“20” type=“text” value=“newbob”
    />
    \n<label for=“user_password”>Password:\n
    \n<div
    class=“fieldWithErrors”><input id=“user_password”
    name=“user[password]” size=“20” type=“password”
    value=“newpassword” />
    \n<label
    for=“password_confirmation”>Confirm Password:\n
    \n<input
    id=“user_password_confirmation” name=“user[password_confirmation]”
    size=“20” type=“password” value=“wrong” />
    \n<label
    for=“user_email”>Email:\n
    \n<input id=“user_email”
    name=“user[email]” size=“20” type=“text”
    value=“[email protected]” />
    \n<label for=“user_name”>Display
    Name:\n
    \n<div class=“fieldWithErrors”><input
    id=“user_name” name=“user[name]” size=“20” type=“text”
    />
    \n<input name=“commit” type=“submit” value=“Submit”
    />\n\n<div class=“halfcolumn”>\n

    Why Sign
    up?

    \n

    Lorem ipsum dolor sit amet, consectetur adipisicing elit,
    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
    enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
    ut aliquip ex ea commodo consequat. Duis aute irure dolor in
    reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
    pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
    culpa qui officia deserunt mollit anim id est
    laborum.

    \n\n\n", @ignore_missing_templates=nil,
    @request_origin=“0.0.0.0 at 2006-06-16 16:23:36”,
    @logger=#<Logger:0x2469848 @level=0, @progname=nil,
    @logdev=#<Logger::LogDevice:0x2469640
    @filename="/Users/jgb/Development/Rails/learningruby/config/…/log/test.log",
    @mutex=#<Logger::LogDevice::LogDeviceMutex:0x2469550
    @mon_entering_queue=[], @mon_count=0, @mon_owner=nil,
    @mon_waiting_queue=[]>,
    @dev=#<File:/Users/jgb/Development/Rails/learningruby/config/…/log/test.log>,
    @shift_size=1048576, @shift_age=0>, @formatter=nil,
    @default_formatter=#<Logger::Formatter:0x24696cc
    @datetime_format=nil>>, @variables_added=nil,
    @template=#<#Class:0x251ee78:0x24d4f80 …>,
    @controller=#<UserController:0x24d6a9c @performed_render=true,
    @headers={“Status”=>“200 OK”, “cookie”=>[],
    “Cache-Control”=>“no-cache”}, @cookies={}, @db_rt_after_render=0,
    @flash={:warning=>“Signup unsuccessful”},
    @assigns={“template_root”=>"/Users/jgb/Development/Rails/learningruby/config/…/app/views",
    “user”=>#<User:0x24d48a0 @attributes={“name”=>nil,
    “salt”=>“CRSGzNy5rM”, “updated_at”=>nil, “profile”=>nil,
    “hashed_password”=>“cd5cdad6d116671769e35bd6ffefd9077e2c1bb6”,
    “url”=>nil, “login”=>“newbob”, “email”=>“[email protected]”,
    “created_at”=>nil}, @password=“newpassword”,
    @errors=#<ActiveRecord::Errors:0x24d19fc @base=#<User:0x24d48a0 …>,
    @errors={“name”=>[“can’t be blank”, “is too short (minimum is 4
    characters)”], “password”=>[“doesn’t match confirmation”]}>,
    @new_record=true, @password_confirmation=“wrong”>,
    “template_class”=>ActionView::Base,
    “response”=>#<ActionController::TestResponse:0x24d6880 …>,
    “action_name”=>“signup”, “template”=>#<#Class:0x251ee78:0x24d4f80
    …>, “request_origin”=>“0.0.0.0 at 2006-06-16 16:23:36”,
    “url”=>#<ActionController::UrlRewriter:0x24d4ea4
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”},
    @request=#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>>,
    “session”=>#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    “variables_added”=>nil,
    “params”=>{“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, “ignore_missing_templates”=>nil,
    “request”=>#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>, “cookies”=>{}, “logger”=>#<Logger:0x2469848
    @level=0, @progname=nil, @logdev=#<Logger::LogDevice:0x2469640
    @filename="/Users/jgb/Development/Rails/learningruby/config/…/log/test.log",
    @mutex=#<Logger::LogDevice::LogDeviceMutex:0x2469550
    @mon_entering_queue=[], @mon_count=0, @mon_owner=nil,
    @mon_waiting_queue=[]>,
    @dev=#<File:/Users/jgb/Development/Rails/learningruby/config/…/log/test.log>,
    @shift_size=1048576, @shift_age=0>, @formatter=nil,
    @default_formatter=#<Logger::Formatter:0x24696cc
    @datetime_format=nil>>, “flash”=>{:warning=>“Signup unsuccessful”},
    “before_filter_chain_aborted”=>false, “headers”=>{“Status”=>“200 OK”,
    “cookie”=>[], “Cache-Control”=>“no-cache”}},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @user=#<User:0x24d48a0 @attributes={“name”=>nil, “salt”=>“CRSGzNy5rM”,
    “updated_at”=>nil, “profile”=>nil,
    “hashed_password”=>“cd5cdad6d116671769e35bd6ffefd9077e2c1bb6”,
    “url”=>nil, “login”=>“newbob”, “email”=>“[email protected]”,
    “created_at”=>nil}, @password=“newpassword”,
    @errors=#<ActiveRecord::Errors:0x24d19fc @base=#<User:0x24d48a0 …>,
    @errors={“name”=>[“can’t be blank”, “is too short (minimum is 4
    characters)”], “password”=>[“doesn’t match confirmation”]}>,
    @new_record=true, @password_confirmation=“wrong”>,
    @action_name=“signup”,
    @params={“user”=>{“password_confirmation”=>“wrong”, “login”=>“newbob”,
    “password”=>“newpassword”, “email”=>“[email protected]”},
    “action”=>“signup”, “controller”=>“user”},
    @before_filter_chain_aborted=false,
    @db_rt_before_render=0.00833773612976074,
    @request=#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>, @url=#<ActionController::UrlRewriter:0x24d4ea4
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”},
    @request=#<ActionController::TestRequest:0x24d6894
    @session_options={}, @accepts=nil,
    @symbolized_path_parameters={:controller=>“user”, :action=>“signup”},
    @query_parameters={“action”=>“signup”}, @host=“test.host”,
    @cookies={}, @env={“REMOTE_ADDR”=>“0.0.0.0”,
    “REQUEST_URI”=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong",
    “SERVER_PORT”=>80, “REQUEST_METHOD”=>“POST”},
    @path_parameters={“action”=>“signup”, “controller”=>“user”},
    @session=#<ActionController::TestSession:0x24d6a74
    @attributes={“flash”=>{:warning=>“Signup unsuccessful”}}>,
    @request_uri=nil, @request_method=:post,
    @parameters={“user”=>{“password_confirmation”=>“wrong”,
    “login”=>“newbob”, “password”=>“newpassword”,
    “email”=>“[email protected]”}, “action”=>“signup”,
    “controller”=>“user”}, @path=nil, @content_type=nil,
    @request_parameters={:user=>{:password=>“newpassword”,
    :login=>“newbob”, :email=>“[email protected]”,
    :password_confirmation=>“wrong”}, “action”=>“signup”,
    “controller”=>“user”}>>,
    @response=#<ActionController::TestResponse:0x24d6880 …>,
    @performed_redirect=false, @request_origin=“0.0.0.0 at 2006-06-16
    16:23:36”, @rendering_runtime=0.0270800590515137,
    @variables_added=true, @template=#<#Class:0x251ee78:0x24d4f80 …>>,
    @assigns_added=true>> should not be success
    ./spec/controllers/user_controller_spec.rb:31:in should not allow new users without the correct fields' /opt/local/lib/ruby/gems/1.8/gems/rspec_generator-0.5.9/lib/rspec_on_rails.rb:33:inrun’
    /opt/local/lib/ruby/gems/1.8/gems/rspec_generator-0.5.9/lib/rspec_on_rails.rb:31:in
    `run’

    Finished in 0.486169 seconds

    4 contexts, 9 specifications, 1 failure
    rake aborted!
    RSpec failures