test/models/password_test.rb in quo_vadis-2.0.2 vs test/models/password_test.rb in quo_vadis-2.1.0
- old
+ new
@@ -44,9 +44,12 @@
end
test 'model passes through password to quo_vadis' do
user = User.new name: 'bob', email: 'bob@example.com'
+ assert user.valid?
+
+ user = User.new name: 'bob', email: 'bob@example.com', password: ''
refute user.valid?
refute_empty user.errors[:password]
user.password = 'x'
refute user.valid?