]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/note_test.rb
Fix most auto-correctable rubocop issues
[rails.git] / test / models / note_test.rb
index 39efc7fe537a4c5768f987672efb45c2733ada19..1c67a3aa0e4cbffa8a170fd457324eef58a8d343 100644 (file)
@@ -5,8 +5,8 @@ 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)