X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/043d29fd7eb72048cf5d07edfbc20ec5c25af708..2bcdf9abaa6e6892d4b30241465293e2bd10ceb7:/test/models/note_test.rb diff --git a/test/models/note_test.rb b/test/models/note_test.rb index d4bd36e74..e3831b2c0 100644 --- a/test/models/note_test.rb +++ b/test/models/note_test.rb @@ -54,8 +54,9 @@ class NoteTest < ActiveSupport::TestCase comment = create(:note_comment) assert_nil comment.note.author - comment = create(:note_comment, :author => users(:normal_user)) - assert_equal users(:normal_user), comment.note.author + user = create(:user) + comment = create(:note_comment, :author => user) + assert_equal user, comment.note.author end def test_author_ip