spec/refinements/json-schema_spec.rb in pupa-0.2.2 vs spec/refinements/json-schema_spec.rb in pupa-0.2.3
- old
+ new
@@ -1,9 +1,10 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-describe Pupa::Refinements do
+describe JSON::Validator do
let(:schema) do
{
+ '$schema' => 'http://json-schema.org/draft-04/schema#',
'properties' => {
'email' => {
'type' => ['string', 'null'],
'format' => 'email',
},