diff --git a/test/models/note_test.rb b/test/models/note_test.rb index ba87911e33..58cd66f0b0 100644 --- a/test/models/note_test.rb +++ b/test/models/note_test.rb @@ -47,15 +47,6 @@ def test_closed? assert_not_predicate create(:note, :status => "open", :closed_at => nil), :closed? end - def test_description - comment = create(:note_comment) - assert_equal comment.body, comment.note.description - - user = create(:user) - comment = create(:note_comment, :author => user) - assert_equal comment.body, comment.note.description - end - def test_author comment = create(:note_comment) assert_nil comment.note.author @@ -65,23 +56,6 @@ def test_author assert_equal user, comment.note.author end - def test_author_id - comment = create(:note_comment) - assert_nil comment.note.author_id - - user = create(:user) - comment = create(:note_comment, :author => user) - assert_equal user.id, comment.note.author_id - end - - def test_author_ip - comment = create(:note_comment) - assert_nil comment.note.author_ip - - comment = create(:note_comment, :author_ip => IPAddr.new("192.168.1.1")) - assert_equal IPAddr.new("192.168.1.1"), comment.note.author_ip - end - # Ensure the lat/lon is formatted as a decimal e.g. not 4.0e-05 def test_lat_lon_format note = build(:note, :latitude => 0.00004 * GeoRecord::SCALE, :longitude => 0.00008 * GeoRecord::SCALE) diff --git a/test/system/report_note_test.rb b/test/system/report_note_test.rb index c4bcc612d6..809495fefb 100644 --- a/test/system/report_note_test.rb +++ b/test/system/report_note_test.rb @@ -4,7 +4,6 @@ class ReportNoteTest < ApplicationSystemTestCase def test_no_link_when_not_logged_in note = create(:note_with_comments) visit note_path(note) - assert_content note.description assert_no_content I18n.t("notes.show.report") end