]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/note_test.rb
Update to iD v1.9.3
[rails.git] / test / models / note_test.rb
index 39efc7fe537a4c5768f987672efb45c2733ada19..4adbef4b884c9a734fc9688e8fd8d4ee9c49024c 100644 (file)
@@ -1,12 +1,12 @@
 # -*- coding: utf-8 -*-
-require 'test_helper'
+require "test_helper"
 
 class NoteTest < ActiveSupport::TestCase
   fixtures :users, :notes, :note_comments
 
   def test_status_valid
-    ok = [ "open", "closed", "hidden" ]
-    bad = [ "expropriated", "fubared" ]
+    ok = %w(open closed hidden)
+    bad = %w(expropriated fubared)
 
     ok.each do |status|
       note = notes(:open_note)
@@ -30,7 +30,7 @@ class NoteTest < ActiveSupport::TestCase
     assert_not_nil note.closed_at
   end
 
-  def test_close
+  def test_reopen
     note = notes(:closed_note_with_comment)
     assert_equal "closed", note.status
     assert_not_nil note.closed_at