Rename User#public to User#identifiable
This commit is contained in:
parent
bd402599f5
commit
56d39b06f2
3 changed files with 5 additions and 5 deletions
|
@ -180,10 +180,10 @@ class UserTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_public
|
||||
assert_equal 16, User.public.count
|
||||
def test_identifiable
|
||||
assert_equal 16, User.identifiable.count
|
||||
assert_raise ActiveRecord::RecordNotFound do
|
||||
User.public.find(users(:normal_user).id)
|
||||
User.identifiable.find(users(:normal_user).id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue