search for: mcbob

Displaying 3 results from an estimated 3 matches for "mcbob".

Did you mean: bob
2006 Jun 16
0
rake spec controller test output hideus.
...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...
2006 Jul 31
0
validates_confirmation_of won''t work
...se ... 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 Loaded suite test/unit/user_test Started F. Finished in 0.343036 seconds. 1) Failure: test_test(UserTest) [test/un...
2006 Jul 13
10
Problem with flashes staying on between pages
...my integration test to do it: class UsersTests < ActionController::IntegrationTest #Test if the login flash stays on if we navigate to a different page def test_login_flash #can''t login with incorrect password post "/user/login", :user=> {:email => "bob@mcbob.com", :password => "not_correct"} assert_response :success assert_session_has_no :user assert_flash_has :warning assert_tag :div, :attributes => {:class => ''notice''} assert_template "user/login"...