X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/be40536440b8677323bcf30bc2b869e36f907dd9..cdeb95092b4d3ba5979b5119369d3d1e89d486c7:/test/models/note_test.rb?ds=sidebyside diff --git a/test/models/note_test.rb b/test/models/note_test.rb index 6525ee5f6..847efe97c 100644 --- a/test/models/note_test.rb +++ b/test/models/note_test.rb @@ -2,8 +2,6 @@ require "test_helper" class NoteTest < ActiveSupport::TestCase - fixtures :users - def test_status_valid ok = %w(open closed hidden) bad = %w(expropriated fubared) @@ -54,8 +52,9 @@ class NoteTest < ActiveSupport::TestCase comment = create(:note_comment) assert_nil comment.note.author - comment = create(:note_comment, :author_id => users(:normal_user).id) - 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