]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/note_comments_test.rb
Add :closed trait to note factory
[rails.git] / test / system / note_comments_test.rb
index 2ad64ccc8fa3f2170adf9154adf3076e03e6311e..aa548059fb0d575fcc3aeed1aba395d8d7891d61 100644 (file)
@@ -11,7 +11,7 @@ class NoteCommentsTest < ApplicationSystemTestCase
   end
 
   test "closed note has no login notice" do
-    note = create(:note_with_comments, :status => "closed", :closed_at => Time.now.utc)
+    note = create(:note_with_comments, :closed)
     visit note_path(note)
 
     assert_no_button "Reactivate"