Colin Law wrote:
Have a look at the free downloadable guide at
Main page - Ubuntu Pocket Guide and Reference if you are
interested. Of course you would have to put your rails stuff on hold
for a while in order to get the hang of Ubuntu.
I am going to checkout ubuntu linux. it should be easy as I worked with
unix earlier. I will setup then debugger in it. may be isntall VMware on
windows box and install ubuntu on it.
I use jEdit, which is open source and runs on win and linux (and mac).
Thanks, I will try this.
assert_nil session[:user]
so it is saying that it expected it to be nil, but it is not, and is
showing you what it is.
I got this error figured out.
Now all assert save fails. I hope this is the last error that I will
have to overcome.
Failure:
test_send_new_password(UserTest) [test/unit/user_test.rb:145]:
Failed assertion, no message given.
user_test_controller.rb code line 145 refers to assert u.save as below:
def test_send_new_password
u = User.new :login => "bob",
:password => "test",
:email => "bob@mcbob.com",
:phone_num => "(212)111-1111",
:first_name=> "robert",
:last_name => "baker",
:user_role => "Patient"
assert u.save
end
The code being called in user.rb:
def send_new_password
new_pass = User.random_string(10)
self.password = self.password_confirmation = new_pass
self.save
Notifications.deliver_forgot_password(self.email, self.login,
new_pass)
end
The column names in the database are all correct as below:
id
login
hashed_password
email
salt
created_at
updated-at
first_name
last_name
phone_num
user_role
Why is ssert save failing - it does not give me any errors?