Forum: Ruby on Rails Fixtures For Logging In

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eric G. (Guest)
on 2006-04-02 11:55
(Received via mailing list)
I'm trying to write some integration tests for my app and am having some
troubles getting past the initial login.
Here is what my fixture looks like

  id: "7"
  login: testuser001,
  email: removed_email_address@domain.invalid,
  state: 2,
  password: b78d41e7ccb8da412f4f66f754121667,
  password_salt: 78cKRniDIo,
  password_hash_type: md5

I took the password and the salt out of the database from another test
entry that I made so I'm assuming that it should work in this example
Unfortunately it doesn't. Instead of logging in correctly, I get

Any ideas why this would be happening. I've used the same username,
password and hash for normal use and they work fine, it's just when
testing that they seem to fail.


Eric G. (Guest)
on 2006-04-02 12:50
(Received via mailing list)
No commas in yml files.
This topic is locked and can not be replied to.