Minor change PhotoValidator#status_message_guid spec

Use new "a nilable guid validator" shared behavior
This commit is contained in:
cmrd Senya 2017-08-25 10:41:22 +03:00
parent 5b12afebed
commit 69996319e1
No known key found for this signature in database
GPG key ID: 5FCC5BA680E67BFE

View file

@ -16,10 +16,8 @@ module DiasporaFederation
end
describe "#status_message_guid" do
it_behaves_like "a property with a value validation/restriction" do
it_behaves_like "a nilable guid validator" do
let(:property) { :status_message_guid }
let(:wrong_values) { ["aaaaaa", "zzz+-#*$$", ""] }
let(:correct_values) { ["1234567890ABCDefgh_ijkl-mnopQR@example.com:3000", nil] }
end
end