Fixtures For Logging In


#1

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: 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
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


#2

Oops,
No commas in yml files.