Jon Gretar Borgthorsson
2006-Jun-16 16:34 UTC
[Rails] 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 => "newbob@mcbob.com"} 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. 1) ExpectationNotMetError in ''The UserController should not allow new users without the correct fields'' ActionController::TestResponse #<ActionController::TestResponse:0x24d6880 @body="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n\t\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html>\n<head>\n\n\t<title>Me Ruby, You Jane</title>\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\"></script>\n<script src=\"/javascripts/effects.js?1149938828\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/dragdrop.js?1149938828\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/controls.js?1149938828\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/application.js?1149938828\" type=\"text/javascript\"></script>\n\n</head>\n<body>\n\n<div id=\"hdrimg\">\n\n<span class=\"login\">\n\t| <a href=\"/user/login\">login</a> \n\t\n\t\n\t\n\t |\n</span>\n\n<h1><a href=\"/\"><strong>Me Ruby,</strong> You Jane</a></h1>\n\n<ul id=\"nav\">\n\t<li><a href=\"/\">home</a></li>\n\t\n\t<li><a href=\"/forum\">forum</a></li>\n\t\n</ul>\n\n</div>\t<!-- end of hdr img -->\n\n\n<div class=\"rowcontainer\" id=\"message\">\n<div class=\"fullcolumn\">\n<h3>Signup unsuccessful</h3>\n</div></div>\n<script type=\"text/javascript\" language=\"javascript\" charset=\"utf-8\">\n// <![CDATA[\n\tsetTimeout(\"new Effect.Fade(''message'');\", 4000);\n// ]]>\n</script>\n\n\n\n\t<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\"><h2>3 errors prohibited this user from being saved</h2><p>There were problems with the following fields:</p><ul><li>Name can''t be blank</li><li>Name is too short (minimum is 4 characters)</li><li>Password doesn''t match confirmation</li></ul></div><label for=\"user_login\">Login:</label>\n<br/>\n<input id=\"user_login\" name=\"user[login]\" size=\"20\" type=\"text\" value=\"newbob\" /><br/>\n<label for=\"user_password\">Password:</label>\n<br/>\n<div class=\"fieldWithErrors\"><input id=\"user_password\" name=\"user[password]\" size=\"20\" type=\"password\" value=\"newpassword\" /></div><br/>\n<label for=\"password_confirmation\">Confirm Password:</label>\n<br/>\n<input id=\"user_password_confirmation\" name=\"user[password_confirmation]\" size=\"20\" type=\"password\" value=\"wrong\" /><br/>\n<label for=\"user_email\">Email:</label>\n<br/>\n<input id=\"user_email\" name=\"user[email]\" size=\"20\" type=\"text\" value=\"newbob@mcbob.com\" /><br/>\n<label for=\"user_name\">Display Name:</label>\n<br/>\n<div class=\"fieldWithErrors\"><input id=\"user_name\" name=\"user[name]\" size=\"20\" type=\"text\" /></div><br/>\n<input name=\"commit\" type=\"submit\" value=\"Submit\" /></p>\n</form></div>\n<div class=\"halfcolumn\">\n<h3>Why Sign up?</h3>\n<p>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.</p>\n</div>\n</div>\n\n\n\n<div id=\"bttmbar\"> <span id=\"design\">design: <a href=\"http://www.davereederdesign.com/\">davereederdesign.com</a></span><span id=\"copyright\">Copyright © 2006 <a href=\"http://jongretar.net\">Jon Gretar Borgthorsson</a>. All Rights Reserved</span>\n</div><!-- end of bttmbar -->\n\n</body>\n</html>", @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"=>"newbob@mcbob.com", "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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com", "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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\"><h2>3 errors prohibited this user from being saved</h2><p>There were problems with the following fields:</p><ul><li>Name can''t be blank</li><li>Name is too short (minimum is 4 characters)</li><li>Password doesn''t match confirmation</li></ul></div><label for=\"user_login\">Login:</label>\n<br/>\n<input id=\"user_login\" name=\"user[login]\" size=\"20\" type=\"text\" value=\"newbob\" /><br/>\n<label for=\"user_password\">Password:</label>\n<br/>\n<div class=\"fieldWithErrors\"><input id=\"user_password\" name=\"user[password]\" size=\"20\" type=\"password\" value=\"newpassword\" /></div><br/>\n<label for=\"password_confirmation\">Confirm Password:</label>\n<br/>\n<input id=\"user_password_confirmation\" name=\"user[password_confirmation]\" size=\"20\" type=\"password\" value=\"wrong\" /><br/>\n<label for=\"user_email\">Email:</label>\n<br/>\n<input id=\"user_email\" name=\"user[email]\" size=\"20\" type=\"text\" value=\"newbob@mcbob.com\" /><br/>\n<label for=\"user_name\">Display Name:</label>\n<br/>\n<div class=\"fieldWithErrors\"><input id=\"user_name\" name=\"user[name]\" size=\"20\" type=\"text\" /></div><br/>\n<input name=\"commit\" type=\"submit\" value=\"Submit\" /></p>\n</form></div>\n<div class=\"halfcolumn\">\n<h3>Why Sign up?</h3>\n<p>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.</p>\n</div>\n</div>\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"=>"newbob@mcbob.com", "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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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"=>"newbob@mcbob.com", "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"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :password_confirmation=>"wrong"}, "action"=>"signup", "controller"=>"user"}>, @url=#<ActionController::UrlRewriter:0x24d4ea4 @parameters={"user"=>{"password_confirmation"=>"wrong", "login"=>"newbob", "password"=>"newpassword", "email"=>"newbob@mcbob.com"}, "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"=>"newbob@mcbob.com"}, "action"=>"signup", "controller"=>"user"}, @path=nil, @content_type=nil, @request_parameters={:user=>{:password=>"newpassword", :login=>"newbob", :email=>"newbob@mcbob.com", :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:in `run'' /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