Minor change PhotoValidator#status_message_guid spec
Use new "a nilable guid validator" shared behavior
This commit is contained in:
parent
5b12afebed
commit
69996319e1
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue