Fixtures For Logging In

Hi,
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
users.yml

user_001:
id: “7”
login: testuser001,
email: [email protected],
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
too.
Unfortunately it doesn’t. Instead of logging in correctly, I get
rejected.

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.

Thanks,

Eric

Oops,
No commas in yml files.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs