1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

2 commits

Author SHA1 Message Date
Paul Thornthwaite
cdae6f38f4 [tests] Fixes schema validator for arrays
Arrays should not fail if empty. They should only fail if any member of
the array does not match the schema.
2013-01-23 15:24:23 +00:00
Paul Thornthwaite
5f63112640 [tests] Extracts schema validator to class
Created Fog::Schema::DataValidator to contain the matching logic for the
data based schemas used by the tests.

This is tested in isolation and removes dependency on Shindo. Also
exposes a #message call to get the last message set by the validator to
avoid coupling the test output to the internals.

Tests for the #data_matches_schema helper are added as well.
2013-01-23 15:24:23 +00:00