Add tests for change of gravatar use depending on email
This commit is contained in:
parent
8283a39dbc
commit
90b7101cc3
5 changed files with 77 additions and 6 deletions
|
@ -163,7 +163,7 @@ class UserTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_visible
|
||||
assert_equal 20, User.visible.count
|
||||
assert_equal 22, User.visible.count
|
||||
assert_raise ActiveRecord::RecordNotFound do
|
||||
User.visible.find(users(:suspended_user).id)
|
||||
end
|
||||
|
@ -173,7 +173,7 @@ class UserTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_active
|
||||
assert_equal 19, User.active.count
|
||||
assert_equal 21, User.active.count
|
||||
assert_raise ActiveRecord::RecordNotFound do
|
||||
User.active.find(users(:inactive_user).id)
|
||||
end
|
||||
|
@ -186,7 +186,7 @@ class UserTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_identifiable
|
||||
assert_equal 21, User.identifiable.count
|
||||
assert_equal 23, User.identifiable.count
|
||||
assert_raise ActiveRecord::RecordNotFound do
|
||||
User.identifiable.find(users(:normal_user).id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue