Skip to content

Failure during a rake test because of wrong password attribute in test/models/user_test.rb #68

@avalou

Description

@avalou

In the test/models/user_test.rb file, I think
test 'user with a valid email should be valid' do user = User.new(email: 'test@test.org', **password_digest**: 'test') assert user.valid? end

should rather be :

test 'user with a valid email should be valid' do user = User.new(email: 'test@test.org', **password**: 'test') assert user.valid? end

In my case it caused a failure during a rake test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions