Re: assert_equal Test - how to test updates

Frederick Cheung
Tue, 02 Feb 2010 18:34:30 -0000

On Feb 2, 5:55 pm, vihrao <vih...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> Then I run it again by changing the method argument like this to update the
> sesison token
>  assert_equal  @bob1,
Guser.update_token("b...-pbC8P9QkocYAvxtiuMwx3w@public.gmane.org",
"bob", "77a138")
> It still gives a success message: 1 tests, 1 assertions, 0 failures, 0
> errors, 0 skips
>
> The new value of session token is never updated in the table column from
> ''77a38''  to ''77a38'' . Can you please
tell me how to update the sesison token
> if my glogin and login fields are found to match