notes: clean up note-locked validation.

This commit is contained in:
evazion
2020-02-16 23:19:49 -06:00
parent 7723597675
commit 9a8aa1990d
2 changed files with 3 additions and 15 deletions

View File

@@ -58,12 +58,6 @@ class NoteTest < ActiveSupport::TestCase
assert_equal(["Note must be inside the image"], @note.errors.full_messages)
end
should "not validate if the post does not exist" do
@note = FactoryBot.build(:note, :x => 500, :y => 500, :post_id => -1)
@note.save
assert_equal(["Post must exist"], @note.errors.full_messages)
end
should "not validate if the body is blank" do
@note = FactoryBot.build(:note, body: " ", :post => @post)