]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/note_helper_test.rb
Use section elements instead of div.section on about page
[rails.git] / test / helpers / note_helper_test.rb
index 4f36f91759cb9a39dfca78b8347637f1257ac11f..bee1cdc2c5485291cf52cdfb5d09e3b0520ee6cd 100644 (file)
@@ -21,13 +21,4 @@ class NoteHelperTest < ActionView::TestCase
     assert_equal "<a href=\"/user/#{ERB::Util.u(user.display_name)}\">#{user.display_name}</a>", note_author(user)
     assert_equal "<a href=\"http://test.host/user/#{ERB::Util.u(user.display_name)}\">#{user.display_name}</a>", note_author(user, :only_path => false)
   end
-
-  def test_disappear_in
-    note_closed_date = Time.utc(2022, 1, 1, 12, 0, 0)
-    note = create(:note, :closed_at => note_closed_date)
-
-    travel_to note_closed_date + 1.day do
-      assert_match %r{^<span title=" 8 January 2022 at 12:00">6 days</span>$}, disappear_in(note)
-    end
-  end
 end