- comment = create(:note_comment, :author_ip => IPAddr.new("192.168.1.1"))
- assert_equal IPAddr.new("192.168.1.1"), comment.note.author_ip
+ comment = create(:note_comment, :author => user, :note => build(:note, :author => user))
+ assert_equal user, comment.note.author