Forum: Ruby on Rails Fixtures For Logging In

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eric G. (Guest)
on 2006-04-02 11:55
(Received via mailing list)
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
Eric G. (Guest)
on 2006-04-02 12:50
(Received via mailing list)
Oops,
No commas in yml files.
This topic is locked and can not be replied to.