search for: newbob

Displaying 2 results from an estimated 2 matches for "newbob".

Did you mean: newbb
2006 Jun 16
0
rake spec controller test output hideus.
...s 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...
2006 Jul 31
0
validates_confirmation_of won''t work
...pet seems identical, but it yields a failed assertion: ---------------------------- class User < ActiveRecord::Base ... validates_confirmation_of :password ... ________________________________ class UserTest < Test::Unit::TestCase ... def test_test u = User.new( :username => "newbob", :password => "newpassword", :email => "newbob@mcbob.com" ) u.password_confirmation = "newpassword" assert u.save #(this is line 17) end ---------------------------- this yields: $ ruby test/unit/user_test.rb L...