X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1f7bd08f4a8a6a626a0c1d7ed60f2dcd6a6801e8..03356be5887ec2075f68e42bf8fa0928fa0ce249:/test/models/note_test.rb diff --git a/test/models/note_test.rb b/test/models/note_test.rb index 39efc7fe5..4adbef4b8 100644 --- a/test/models/note_test.rb +++ b/test/models/note_test.rb @@ -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