Rename User#public to User#identifiable

This commit is contained in:
Tom Hughes 2014-04-25 00:16:35 +01:00
parent bd402599f5
commit 56d39b06f2
3 changed files with 5 additions and 5 deletions

View file

@ -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