sort the default test database user and password.
Adding new test for the user
This commit is contained in:
parent
5cc8afd896
commit
c373220bd2
2 changed files with 16 additions and 2 deletions
|
@ -7,4 +7,18 @@ class UserTest < Test::Unit::TestCase
|
|||
def test_truth
|
||||
assert true
|
||||
end
|
||||
|
||||
def test_invalid_with_empty_attributes
|
||||
user = User.new
|
||||
assert !user.valid?
|
||||
assert user.errors.invalid?(:email)
|
||||
assert user.errors.invalid?(:pass_crypt)
|
||||
assert user.errors.invalid?(:display_name)
|
||||
assert user.errors.invalid?(:email)
|
||||
assert !user.errors.invalid?(:home_lat)
|
||||
assert !user.errors.invalid?(:home_lon)
|
||||
assert !user.errors.invalid?(:home_zoom)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue